From 5f1c2d3a49f8a7e2645af9e62ae41e66019589c5 Mon Sep 17 00:00:00 2001 From: souliane Date: Sun, 24 Aug 2014 13:15:51 +0200 Subject: [PATCH] tools (jid): force JIDs to lower case --- src/tools/jid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/jid.py b/src/tools/jid.py index a9384c12..0f156297 100644 --- a/src/tools/jid.py +++ b/src/tools/jid.py @@ -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