diff options
author | mathieui <mathieui@mathieui.net> | 2016-06-22 01:16:03 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-06-22 01:16:03 +0200 |
commit | db47dbbc46e1e6eeed2c485477bcabae177aee72 (patch) | |
tree | eda9460de69309db2b232a86fc80e4de4b848bea | |
parent | ce915a86c1120dcccb7571380241750007d64a6f (diff) | |
download | poezio-db47dbbc46e1e6eeed2c485477bcabae177aee72.tar.gz poezio-db47dbbc46e1e6eeed2c485477bcabae177aee72.tar.bz2 poezio-db47dbbc46e1e6eeed2c485477bcabae177aee72.tar.xz poezio-db47dbbc46e1e6eeed2c485477bcabae177aee72.zip |
Fix a traceback on adhoc
-rw-r--r-- | poezio/core/handlers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index d6786e8b..b03f5dfa 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -1224,7 +1224,7 @@ class HandlerCore: ### Ad-hoc commands - def on_next_adhoc_step(self, iq, adhoc_session): + def next_adhoc_step(self, iq, adhoc_session): status = iq['command']['status'] xform = iq.xml.find('{http://jabber.org/protocol/commands}command/{jabber:x:data}x') if xform is not None: @@ -1257,7 +1257,7 @@ class HandlerCore: notes = '\n'.join([note[1] for note in iq['command']['notes']]) self.core.information("Adhoc command %s: %s" % (status, notes), "Info") - def on_adhoc_error(self, iq, adhoc_session): + def adhoc_error(self, iq, adhoc_session): self.core.xmpp.plugin['xep_0050'].terminate_command(adhoc_session) error_message = self.core.get_error_message(iq) self.core.information("An error occured while executing the command: %s" % (error_message), |