summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-04-20 20:33:02 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-04-20 20:33:02 +0200
commitad0465b32051e224f6a234f3ed36494905e59cbf (patch)
tree5b941dd470a70657b3c4c91b9f6068587108f184 /src/irc
parentd5324ac7780e9a6297631a9c3dc83676e0c1d246 (diff)
downloadbiboumi-ad0465b32051e224f6a234f3ed36494905e59cbf.tar.gz
biboumi-ad0465b32051e224f6a234f3ed36494905e59cbf.tar.bz2
biboumi-ad0465b32051e224f6a234f3ed36494905e59cbf.tar.xz
biboumi-ad0465b32051e224f6a234f3ed36494905e59cbf.zip
Decode incoming JIDs local part according to xep 0106
This let users send message to nicks such as Q@CServe.quakenet.org fix #3047
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/iid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/iid.cpp b/src/irc/iid.cpp
index 9d39129..5d8dc0a 100644
--- a/src/irc/iid.cpp
+++ b/src/irc/iid.cpp
@@ -1,5 +1,6 @@
#include <utils/tolower.hpp>
#include <config/config.hpp>
+#include <utils/encoding.hpp>
#include <irc/iid.hpp>
@@ -68,6 +69,7 @@ Iid::Iid():
void Iid::set_local(const std::string& loc)
{
this->local = utils::tolower(loc);
+ xep0106::decode(local);
}
void Iid::set_server(const std::string& serv)