diff options
author | Peter Powell <petpow@saberuk.com> | 2018-08-15 08:56:30 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-08-15 08:58:06 +0100 |
commit | be0c4f6a3c0e65435f211d817270073dce047396 (patch) | |
tree | 8ca8575fa9f2676eacd943e721fa4f6286e8c911 /src | |
parent | a69f543be3bb6df77bfc19eaadc313d405ec2d45 (diff) |
Fix m_alias not reconstituting the RFC message properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_alias.cpp | 4 |
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); } |