summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_alias.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 75ab57e94..935cb8259 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -134,9 +134,9 @@ class ModuleAlias : public Module
std::string message(command);
for (CommandBase::Params::const_iterator iter = parameters.begin(); iter != parameters.end();)
{
- const std::string& parameter = *++iter;
+ const std::string& parameter = *iter++;
message.push_back(' ');
- if (iter == parameters.end())
+ if (iter == parameters.end() && (parameter.empty() || parameter.find(' ') != std::string::npos))
message.push_back(':');
message.append(parameter);
}