fix a bug on /bookmark when there's only one bookmark
This commit is contained in:
parent
e59da58dd8
commit
2102085f9e
1 changed files with 4 additions and 1 deletions
|
@ -999,7 +999,10 @@ class Gui(object):
|
|||
bookmarked.remove(room)
|
||||
break
|
||||
bookmarked = ':'.join(bookmarked)
|
||||
bookmarks = bookmarked+':'+res
|
||||
if bookmarked:
|
||||
bookmarks = bookmarked+':'+res
|
||||
else:
|
||||
bookmarks = res
|
||||
config.set_and_save('rooms', bookmarks)
|
||||
self.information(_('Your bookmarks are now: %s') % bookmarks)
|
||||
|
||||
|
|
Loading…
Reference in a new issue