diff options
author | mathieui <mathieui@mathieui.net> | 2012-08-06 15:38:09 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-08-06 15:38:09 +0200 |
commit | 7a485ef4d0d74313bff8c9c7b2ee2dcb5c4a75e9 (patch) | |
tree | 293d3c01239572dd3a9743422c79f8c0dfdc0a1c /src/bookmark.py | |
parent | a14141bcec98eee77937716113ecd8a994c4836b (diff) | |
download | poezio-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.py | 4 |
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 != '': |