diff options
-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): |