diff src/plugins/plugin_xep_0280.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 8b37a62336c3
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0280.py	Sun Feb 12 21:17:56 2017 +0100
+++ b/src/plugins/plugin_xep_0280.py	Mon Feb 13 20:59:09 2017 +0100
@@ -147,8 +147,8 @@
             mess_data = SatMessageProtocol.parseMessage(cc_message_elt, client)
             if not mess_data['message'] and not mess_data['subject']:
                 return False
-            self.host.messageAddToHistory(mess_data, client)
-            self.host.sendMessageToBridge(mess_data, client)
+            client.messageAddToHistory(mess_data)
+            client.messageSendToBridge(mess_data)
         else:
             log.warning(u"invalid message carbons received:\n{xml}".format(
                 xml = message_elt.toXml()))