summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-10-04 14:10:19 +0100
committerPeter Powell <petpow@saberuk.com>2017-10-04 14:10:19 +0100
commit12c67fb0e5de72c127f62a1eed6cd5e5627f3c91 (patch)
tree92e9f20fa52fe18bd91d6f99fbe0e2a6cce8e9d3 /src/mode.cpp
parente97d5cf4fa46fe4de3d5a4c0ce603048c24ddbb3 (diff)
Fix RPL_SERVERVERSION treating the modes as a single parameter.
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index c4969d467..fd5e30707 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -720,7 +720,9 @@ std::string ModeParser::CreateModeList(ModeType mt, bool needparam)
void ModeParser::RecreateModeListFor004Numeric()
{
- Cached004ModeList = CreateModeList(MODETYPE_USER) + " " + CreateModeList(MODETYPE_CHANNEL) + " " + CreateModeList(MODETYPE_CHANNEL, true);
+ Cached004ModeList[0] = CreateModeList(MODETYPE_USER);
+ Cached004ModeList[1] = CreateModeList(MODETYPE_CHANNEL);
+ Cached004ModeList[2] = CreateModeList(MODETYPE_CHANNEL, true);
}
PrefixMode* ModeParser::FindPrefix(unsigned const char pfxletter)