fix a bug on /bookmark when there's only one bookmark

parent e59da58d
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment