summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/commands.rst5
-rw-r--r--src/tabs.py6
2 files changed, 8 insertions, 3 deletions
diff --git a/doc/source/commands.rst b/doc/source/commands.rst
index 02f044a8..626b57d0 100644
--- a/doc/source/commands.rst
+++ b/doc/source/commands.rst
@@ -286,6 +286,11 @@ MultiUserChat tab commands
.. glossary::
:sorted:
+ /clear [RosterTab version]
+ **Usage:** ``/clear``
+
+ Clear the information buffer. (was /clear_infos)
+
/ignore
**Usage:** ``/ignore <nickname>``
diff --git a/src/tabs.py b/src/tabs.py
index 3890adaf..ceb69278 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2206,7 +2206,7 @@ class RosterInfoTab(Tab):
desc=_('Import your contacts from /path/to/file if specified, or $HOME/poezio_contacts if not.'),
shortdesc=_('Import your roster from a file.'),
completion=self.completion_file)
- self.register_command('clear_infos', self.command_clear_infos,
+ self.register_command('clear', self.command_clear,
shortdesc=_('Clear the info buffer.'))
self.register_command('last_activity', self.command_last_activity,
usage=_('<jid>'),
@@ -2394,9 +2394,9 @@ class RosterInfoTab(Tab):
return the_input.auto_completion(end_list, '')
- def command_clear_infos(self, arg):
+ def command_clear(self, arg=''):
"""
- /clear_infos
+ /clear
"""
self.core.information_buffer.messages = []
self.information_win.rebuild_everything(self.core.information_buffer)