summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}