changeset 1118:b1cb1d70bea9

tools (jid): force JIDs to lower case
author souliane <souliane@mailoo.org>
date Sun, 24 Aug 2014 13:15:51 +0200
parents 6053fb8a6466
children 5968fd8d2248
files src/tools/jid.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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