diff options
author | mathieui <mathieui@mathieui.net> | 2017-02-13 19:18:26 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-02-13 19:21:16 +0100 |
commit | 5e40b6303190471c32157e32d7ad53624a0f18d4 (patch) | |
tree | 6b76ae7d131477592182247d3b2327a03282d451 | |
parent | 1cc741c0c19c814de8c5bf581c380311432c8be4 (diff) | |
download | poezio-5e40b6303190471c32157e32d7ad53624a0f18d4.tar.gz poezio-5e40b6303190471c32157e32d7ad53624a0f18d4.tar.bz2 poezio-5e40b6303190471c32157e32d7ad53624a0f18d4.tar.xz poezio-5e40b6303190471c32157e32d7ad53624a0f18d4.zip |
Don't require parameters for the ignored args wrapper
-rw-r--r-- | poezio/decorators.py | 2 | ||||
-rw-r--r-- | poezio/tabs/xmltab.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/poezio/decorators.py b/poezio/decorators.py index 87c9910e..e824a8f1 100644 --- a/poezio/decorators.py +++ b/poezio/decorators.py @@ -63,7 +63,7 @@ class CommandArgParser(object): """ Call the function without any argument """ - def wrap(self, args, *a, **kw): + def wrap(self, args=None, *a, **kw): return func(self, *a, **kw) return wrap diff --git a/poezio/tabs/xmltab.py b/poezio/tabs/xmltab.py index e92df03a..5c7a8da7 100644 --- a/poezio/tabs/xmltab.py +++ b/poezio/tabs/xmltab.py @@ -167,7 +167,7 @@ class XMLTab(Tab): self.refresh() except Exception as e: self.core.information('Invalid XML Mask: %s' % e, 'Error') - self.command_filter_reset('') + self.command_filter_reset() @command_args_parser.raw def command_filter_to(self, jid): @@ -216,7 +216,7 @@ class XMLTab(Tab): self.refresh() except: self.core.information('Invalid XML Path', 'Error') - self.command_filter_reset('') + self.command_filter_reset() @command_args_parser.ignored def command_filter_reset(self): @@ -349,7 +349,7 @@ class XMLTab(Tab): def on_close(self): super().on_close() - self.command_clear('') + self.command_clear() self.core.xml_tab = False def on_info_win_size_changed(self): |