diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-10-05 21:28:11 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-10-05 21:28:11 +0000 |
commit | 2102085f9ee65f1c65729096ac259fa1964798ea (patch) | |
tree | c471f22387cf2a3762a61789c0b94516d4c2cdf4 | |
parent | e59da58dd84333d4579f77da4e2fc2f1630e0f6b (diff) | |
download | poezio-2102085f9ee65f1c65729096ac259fa1964798ea.tar.gz poezio-2102085f9ee65f1c65729096ac259fa1964798ea.tar.bz2 poezio-2102085f9ee65f1c65729096ac259fa1964798ea.tar.xz poezio-2102085f9ee65f1c65729096ac259fa1964798ea.zip |
fix a bug on /bookmark when there's only one bookmark
-rw-r--r-- | src/gui.py | 5 |
1 files changed, 4 insertions, 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) |