]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_cap Convert capability names in CAP REQ to lowercase before processing them
authorattilamolnar <attilamolnar@hush.com>
Thu, 21 Nov 2013 21:25:45 +0000 (22:25 +0100)
committerattilamolnar <attilamolnar@hush.com>
Thu, 21 Nov 2013 21:25:45 +0000 (22:25 +0100)
Requested in #686

src/modules/m_cap.cpp

index 22840ce2d1197844c33b626622b27d961b4d3d1b..605423ae049f0bf8c0472965c4caefee386b8db2 100644 (file)
@@ -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_);
                        }