From 28eeee38bd912445f376d0261580173889c2137a Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 17 Dec 2018 14:02:20 +0000 Subject: 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. --- src/coremods/core_channel/core_channel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/coremods') 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)); } -- cgit v1.2.3