diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-28 16:02:30 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-28 16:02:30 +0100 |
commit | 72eeba42a2622cf86071fc41f838cbfc8024278d (patch) | |
tree | 650580705bde701463ad927a7992034db069e028 /src | |
parent | f8911f84b043cc15ccb20e939c4860b64fb7c3a5 (diff) | |
download | poezio-72eeba42a2622cf86071fc41f838cbfc8024278d.tar.gz poezio-72eeba42a2622cf86071fc41f838cbfc8024278d.tar.bz2 poezio-72eeba42a2622cf86071fc41f838cbfc8024278d.tar.xz poezio-72eeba42a2622cf86071fc41f838cbfc8024278d.zip |
Fix the informations displayed on /bookmark and /bookmark_remote
Diffstat (limited to 'src')
-rw-r--r-- | src/core.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py index 6f78b8c3..c91f56a1 100644 --- a/src/core.py +++ b/src/core.py @@ -1703,12 +1703,16 @@ class Core(object): if not bm: bm = bookmark.Bookmark(jid=roomname) bookmark.bookmarks.append(bm) + self.information('Bookmark added.', 'Info') + else: + self.information('Bookmark updated.', 'Info') if nick: bm.nick = nick bm.autojoin = True bm.method = "local" bookmark.save_local() - self.information(_('Your bookmarks are now: %s') % bookmark.bookmarks, 'Info') + self.information(_('Your local bookmarks are now: %s') % + [b for b in bookmark.bookmarks if b.method == 'local'], 'Info') def command_bookmark(self, arg): """ @@ -1758,6 +1762,8 @@ class Core(object): bm.autojoin = autojoin if bookmark.save_remote(self.xmpp, self): self.information('Bookmark added.', 'Info') + self.information(_('Your remote bookmarks are now: %s') % + [b for b in bookmark.bookmarks if b.method in ('pep', 'privatexml')], 'Info') def command_set(self, arg): """ |