summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-12-17 14:02:20 +0000
committerPeter Powell <petpow@saberuk.com>2018-12-17 14:02:20 +0000
commit28eeee38bd912445f376d0261580173889c2137a (patch)
tree9b5179a939cbb0fc5cd43dbb61d960ff4bbb08d3 /src/coremods
parent8ec9a73a91ad1c7009fd3055fbad7c980b5e1732 (diff)
Alphabetically sort the modes in MAXLIST tokens.
This isn't strictly necessary but we do it for other modes in 005 so lets do it for MAXLIST too.
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_channel/core_channel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coremods/core_channel/core_channel.cpp b/src/coremods/core_channel/core_channel.cpp
index 4e49ba2b4..05bf113ed 100644
--- a/src/coremods/core_channel/core_channel.cpp
+++ b/src/coremods/core_channel/core_channel.cpp
@@ -216,7 +216,10 @@ class CoreModChannel : public Module, public CheckExemption::EventListener
if (!buffer.empty())
buffer.push_back(',');
- buffer.append(iter->second);
+ std::string modes(iter->second);
+ std::sort(modes.begin(), modes.end());
+
+ buffer.append(modes);
buffer.push_back(':');
buffer.append(ConvToStr(iter->first));
}