summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-11-21 22:25:45 +0100
committerattilamolnar <attilamolnar@hush.com>2013-11-21 22:25:45 +0100
commit357d190074ee58809b31ea0c08543566168bddf6 (patch)
tree15a76232f2fc1a7b863f4a40fab803af4ee8c67f
parentb7d84270bce15507775c7ec216dc1d5ad8b02a53 (diff)
m_cap Convert capability names in CAP REQ to lowercase before processing them
Requested in #686
-rw-r--r--src/modules/m_cap.cpp1
1 files changed, 1 insertions, 0 deletions
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_);
}