Fix a bug in /bookmark

This commit is contained in:
mathieui 2015-02-21 22:05:32 +01:00
parent 2583b6a934
commit 5fc1f9728a
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -452,7 +452,7 @@ def _add_bookmark(self, jid, autojoin, password, method):
return _add_wildcard_bookmarks(self, method)
else:
info = safeJID(jid)
roomname, nick = info.resource = info.bare, info.resource
roomname, nick = info.bare, info.resource
if roomname == '':
if not isinstance(self.current_tab(), tabs.MucTab):
return