Channel names are case insensitive

But some servers (epiknet for example) send channel names with an uppercase
This commit is contained in:
Florent Le Coz
2013-11-28 02:14:42 +01:00
parent 2921f53657
commit 1151c26c36
3 changed files with 30 additions and 6 deletions
+5
View File
@@ -6,6 +6,7 @@
#include <utils/encoding.hpp>
#include <config/config.hpp>
#include <bridge/colors.hpp>
#include <utils/tolower.hpp>
#include <utils/split.hpp>
#include <xmpp/jid.hpp>
#include <string.h>
@@ -66,6 +67,10 @@ int main()
assert(splitted[0] == "");
assert(splitted[1] == "a");
const std::string lowercase = utils::tolower("CoUcOu LeS CoPaiNs ♥");
std::cout << lowercase << std::endl;
assert(lowercase == "coucou les copains ♥");
/**
* XML parsing
*/