Channel names are case insensitive
But some servers (epiknet for example) send channel names with an uppercase
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user