Provide a JID for IRC users, and add a stringprep dependency for this

This commit is contained in:
Florent Le Coz
2013-12-08 20:14:12 +01:00
parent cb718def0c
commit b11126a19d
12 changed files with 137 additions and 11 deletions
+5
View File
@@ -148,6 +148,11 @@ int main()
assert(jid2.domain == "ツ.coucou");
assert(jid2.resource == "coucou@coucou/coucou");
// Nodeprep
const std::string& badjid("~louiz@EpiK-7D9D1FDE.poez.io");
const std::string correctjid = jidprep(badjid);
assert(correctjid == "~louiz@epik-7d9d1fde.poez.io");
/**
* Config
*/