summaryrefslogtreecommitdiff
path: root/src/bookmark.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-08-06 15:38:09 +0200
committermathieui <mathieui@mathieui.net>2012-08-06 15:38:09 +0200
commit7a485ef4d0d74313bff8c9c7b2ee2dcb5c4a75e9 (patch)
tree293d3c01239572dd3a9743422c79f8c0dfdc0a1c /src/bookmark.py
parenta14141bcec98eee77937716113ecd8a994c4836b (diff)
downloadpoezio-7a485ef4d0d74313bff8c9c7b2ee2dcb5c4a75e9.tar.gz
poezio-7a485ef4d0d74313bff8c9c7b2ee2dcb5c4a75e9.tar.bz2
poezio-7a485ef4d0d74313bff8c9c7b2ee2dcb5c4a75e9.tar.xz
poezio-7a485ef4d0d74313bff8c9c7b2ee2dcb5c4a75e9.zip
Add a common.safeJID function, and use it everywhere
Diffstat (limited to 'src/bookmark.py')
-rw-r--r--src/bookmark.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bookmark.py b/src/bookmark.py
index 95f42dd8..8d84022d 100644
--- a/src/bookmark.py
+++ b/src/bookmark.py
@@ -3,7 +3,7 @@ import logging
from sys import version_info
from sleekxmpp.plugins.xep_0048 import *
-from core import JID
+from common import safeJID
from config import config
log = logging.getLogger(__name__)
@@ -204,7 +204,7 @@ def get_local():
return
rooms = rooms.split(':')
for room in rooms:
- jid = JID(room)
+ jid = safeJID(room)
if jid.bare == '':
continue
if jid.resource != '':