aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-12-17 14:02:20 +0000
committerGravatar Peter Powell2018-12-17 14:02:20 +0000
commit28eeee38bd912445f376d0261580173889c2137a (patch)
tree9b5179a939cbb0fc5cd43dbb61d960ff4bbb08d3 /src
parentFix ParamModeBase::OnUnset() not being virtual. (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')
-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));
}