diff src/plugins/plugin_xep_0033.py @ 2152:6a004a22dd9e

plugins XEP-0033, XEP-0280, text commands: fixed method renaming after client refactoring
author Goffi <goffi@goffi.org>
date Mon, 13 Feb 2017 20:59:09 +0100
parents a543eda2c923
children
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0033.py	Sun Feb 12 21:17:56 2017 +0100
+++ b/src/plugins/plugin_xep_0033.py	Mon Feb 13 20:59:09 2017 +0100
@@ -126,8 +126,8 @@
             d = defer.Deferred()
             if not skip_send:
                 d.addCallback(client.sendMessageData)
-            d.addCallback(self.host.messageAddToHistory, client)
-            d.addCallback(self.host.sendMessageToBridge, client)
+            d.addCallback(client.messageAddToHistory)
+            d.addCallback(client.messageSendToBridge)
             d.addErrback(lambda failure: failure.trap(exceptions.CancelError))
             return d.callback(mess_data)