From 72eeba42a2622cf86071fc41f838cbfc8024278d Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 28 Nov 2011 16:02:30 +0100 Subject: Fix the informations displayed on /bookmark and /bookmark_remote --- src/core.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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): """ -- cgit v1.2.3