diff options
| author | 2018-08-15 08:56:30 +0100 | |
|---|---|---|
| committer | 2018-08-15 08:58:06 +0100 | |
| commit | be0c4f6a3c0e65435f211d817270073dce047396 (patch) | |
| tree | 8ca8575fa9f2676eacd943e721fa4f6286e8c911 /src/modules/m_alias.cpp | |
| parent | Fix a bunch more conflicting/unnamed numerics. (diff) | |
| download | inspircd++-be0c4f6a3c0e65435f211d817270073dce047396.tar.gz inspircd++-be0c4f6a3c0e65435f211d817270073dce047396.tar.bz2 inspircd++-be0c4f6a3c0e65435f211d817270073dce047396.zip | |
Fix m_alias not reconstituting the RFC message properly.
Diffstat (limited to 'src/modules/m_alias.cpp')
| -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); } |
