Commit abb41d57 authored by louiz’'s avatar louiz’

Rename /reset to /filter_reset in XML tab, for consistency

parent 4b66b519
...@@ -625,7 +625,7 @@ XML tab commands ...@@ -625,7 +625,7 @@ XML tab commands
Write the content of the XML buffer into a file. Write the content of the XML buffer into a file.
/reset /filter_reset
Reset the stanza filters. Reset the stanza filters.
/filter_id /filter_id
...@@ -72,7 +72,7 @@ class XMLTab(Tab): ...@@ -72,7 +72,7 @@ class XMLTab(Tab):
shortdesc="Close this tab.") shortdesc="Close this tab.")
self.register_command('clear', self.command_clear, self.register_command('clear', self.command_clear,
shortdesc='Clear the current buffer.') shortdesc='Clear the current buffer.')
self.register_command('reset', self.command_reset, self.register_command('filter_reset', self.command_filter_reset,
shortdesc='Reset the stanza filter.') shortdesc='Reset the stanza filter.')
self.register_command('filter_id', self.command_filter_id, self.register_command('filter_id', self.command_filter_id,
usage='<id>', usage='<id>',
...@@ -167,7 +167,7 @@ class XMLTab(Tab): ...@@ -167,7 +167,7 @@ class XMLTab(Tab):
self.refresh() self.refresh()
except Exception as e: except Exception as e:
self.core.information('Invalid XML Mask: %s' % e, 'Error') self.core.information('Invalid XML Mask: %s' % e, 'Error')
self.command_reset('') self.command_filter_reset('')
@command_args_parser.raw @command_args_parser.raw
def command_filter_to(self, jid): def command_filter_to(self, jid):
...@@ -216,11 +216,11 @@ class XMLTab(Tab): ...@@ -216,11 +216,11 @@ class XMLTab(Tab):
self.refresh() self.refresh()
except: except:
self.core.information('Invalid XML Path', 'Error') self.core.information('Invalid XML Path', 'Error')
self.command_reset('') self.command_filter_reset('')
@command_args_parser.ignored @command_args_parser.ignored
def command_reset(self): def command_filter_reset(self):
"""/reset""" """/filter_reset"""
if self.filters: if self.filters:
self.filters = [] self.filters = []
self.filtered_buffer.del_window(self.text_win) self.filtered_buffer.del_window(self.text_win)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment