tools (jid): force JIDs to lower case

This commit is contained in:
souliane 2014-08-24 13:15:51 +02:00
commit 5f1c2d3a49

View file

@ -22,7 +22,7 @@ class JID(unicode):
"""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