diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-28 16:09:44 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-28 16:09:44 +0100 |
commit | 5abf8ab3ae3e2be3fc92d6fb5f2db86aa1e7af94 (patch) | |
tree | bf3f388edfddfec33953b47230983c3654ecccd2 /src/core.py | |
parent | 72eeba42a2622cf86071fc41f838cbfc8024278d (diff) | |
download | poezio-5abf8ab3ae3e2be3fc92d6fb5f2db86aa1e7af94.tar.gz poezio-5abf8ab3ae3e2be3fc92d6fb5f2db86aa1e7af94.tar.bz2 poezio-5abf8ab3ae3e2be3fc92d6fb5f2db86aa1e7af94.tar.xz poezio-5abf8ab3ae3e2be3fc92d6fb5f2db86aa1e7af94.zip |
Add a /bookmarks command
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py index c91f56a1..5ab0abfb 100644 --- a/src/core.py +++ b/src/core.py @@ -140,6 +140,7 @@ class Core(object): 'set_plugin': (self.command_set_plugin, _("Usage: /set_plugin <plugin> <option> [value]\nSet Plugin: Set the value of the option in a plugin configuration file."), self.completion_set_plugin), 'invite': (self.command_invite, _("Usage: /invite <jid> <room> [reason]\nInvite: Invite jid in room with reason."), self.completion_invite), 'decline': (self.command_decline, _("Usage: /decline <room> [reason]\nDecline: Decline the invitation to room with or without reason."), self.completion_decline), + 'bookmarks': (self.command_bookmarks, _("Usage: /bookmarks\nBookmarks: Show the current bookmarks."), None), } self.key_func = { @@ -1765,6 +1766,13 @@ class Core(object): self.information(_('Your remote bookmarks are now: %s') % [b for b in bookmark.bookmarks if b.method in ('pep', 'privatexml')], 'Info') + def command_bookmarks(self, arg): + """/bookmarks""" + self.information(_('Your remote bookmarks are: %s') % + [b for b in bookmark.bookmarks if b.method in ('pep', 'privatexml')], 'Info') + self.information(_('Your local bookmarks are: %s') % + [b for b in bookmark.bookmarks if b.method is 'local'], 'Info') + def command_set(self, arg): """ /set <option> [value] |