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

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-10-05 21:28:11 +00:00
parent e59da58dd8
commit 2102085f9e

View file

@ -999,7 +999,10 @@ class Gui(object):
bookmarked.remove(room) bookmarked.remove(room)
break break
bookmarked = ':'.join(bookmarked) bookmarked = ':'.join(bookmarked)
bookmarks = bookmarked+':'+res if bookmarked:
bookmarks = bookmarked+':'+res
else:
bookmarks = res
config.set_and_save('rooms', bookmarks) config.set_and_save('rooms', bookmarks)
self.information(_('Your bookmarks are now: %s') % bookmarks) self.information(_('Your bookmarks are now: %s') % bookmarks)