diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-11-21 22:25:45 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-11-21 22:25:45 +0100 |
commit | 357d190074ee58809b31ea0c08543566168bddf6 (patch) | |
tree | 15a76232f2fc1a7b863f4a40fab803af4ee8c67f | |
parent | b7d84270bce15507775c7ec216dc1d5ad8b02a53 (diff) |
m_cap Convert capability names in CAP REQ to lowercase before processing them
Requested in #686
-rw-r--r-- | src/modules/m_cap.cpp | 1 |
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_); } |