summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-08 00:30:53 +0100
committermathieui <mathieui@mathieui.net>2011-11-08 00:30:53 +0100
commit7d6c92ffc6af5ae738fc51b2f1454370e09a49fb (patch)
tree2a0726b1fd011257cb88b29fa16cc0fce50e3827 /src
parent33997e43569fb2ea5944fa83812f19a484ce3c32 (diff)
downloadpoezio-7d6c92ffc6af5ae738fc51b2f1454370e09a49fb.tar.gz
poezio-7d6c92ffc6af5ae738fc51b2f1454370e09a49fb.tar.bz2
poezio-7d6c92ffc6af5ae738fc51b2f1454370e09a49fb.tar.xz
poezio-7d6c92ffc6af5ae738fc51b2f1454370e09a49fb.zip
Add a command /clear_infos
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index f26c34b6..eaa7c375 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1410,6 +1410,7 @@ class RosterInfoTab(Tab):
self.commands['remove'] = (self.command_remove, _("Usage: /remove [jid]\nRemove: Use this command to remove the specified JID from your roster. This wil unsubscribe you from its presence, cancel its subscription to yours, and remove the item from your roster"), self.completion_remove)
self.commands['export'] = (self.command_export, _("Usage: /export [/path/to/file]\nExport: Use this command to export your contacts into /path/to/file if specified, or $HOME/poezio_contacts if not."), None)
self.commands['import'] = (self.command_import, _("Usage: /import [/path/to/file]\nImport: Use this command to import your contacts from /path/to/file if specified, or $HOME/poezio_contacts if not."), None)
+ self.commands['clear_infos'] = (self.command_clear_infos, _("Usage: /clear_infos\nClear Infos: Use this command to clear the info buffer."), None)
self.resize()
def resize(self):
@@ -1430,6 +1431,15 @@ class RosterInfoTab(Tab):
not self.input.help_message:
self.complete_commands(self.input)
+ def command_clear_infos(self, arg):
+ """
+ /clear_infos
+ """
+ self.core.information_buffer.messages = []
+ self.information_win.rebuild_everything(self.core.information_buffer)
+ self.core.information_win.rebuild_everything(self.core.information_buffer)
+ self.refresh()
+
def command_deny(self, args):
"""
Denies a JID from our roster