# HG changeset patch # User souliane # Date 1408878951 -7200 # Node ID b1cb1d70bea9bc8cb2d8693a5eda0f74375ee592 # Parent 6053fb8a6466e7f9f670644c45b58e308974d6f6 tools (jid): force JIDs to lower case diff -r 6053fb8a6466 -r b1cb1d70bea9 src/tools/jid.py --- a/src/tools/jid.py Thu Aug 21 22:46:57 2014 +0200 +++ b/src/tools/jid.py Sun Aug 24 13:15:51 2014 +0200 @@ -22,7 +22,7 @@ """This class help manage JID (Node@Domaine/Resource)""" def __new__(cls, jid): - self = unicode.__new__(cls, jid) + self = unicode.__new__(cls, jid.lower()) self.__parse() return self