From: attilamolnar Date: Thu, 21 Nov 2013 21:25:45 +0000 (+0100) Subject: m_cap Convert capability names in CAP REQ to lowercase before processing them X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=357d190074ee58809b31ea0c08543566168bddf6;hp=b7d84270bce15507775c7ec216dc1d5ad8b02a53;p=user%2Fhenk%2Fcode%2Finspircd.git m_cap Convert capability names in CAP REQ to lowercase before processing them Requested in #686 --- diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 22840ce2d..605423ae0 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -64,6 +64,7 @@ class CommandCAP : public Command while (cap_stream.GetToken(cap_)) { + std::transform(cap_.begin(), cap_.end(), cap_.begin(), ::tolower); Data.wanted.push_back(cap_); }