comparison 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
comparison
equal deleted inserted replaced
2151:fff88c33442f 2152:6a004a22dd9e
145 # on send we parse the message and just add it to history 145 # on send we parse the message and just add it to history
146 # and send it to frontends (without normal sending treatments) 146 # and send it to frontends (without normal sending treatments)
147 mess_data = SatMessageProtocol.parseMessage(cc_message_elt, client) 147 mess_data = SatMessageProtocol.parseMessage(cc_message_elt, client)
148 if not mess_data['message'] and not mess_data['subject']: 148 if not mess_data['message'] and not mess_data['subject']:
149 return False 149 return False
150 self.host.messageAddToHistory(mess_data, client) 150 client.messageAddToHistory(mess_data)
151 self.host.sendMessageToBridge(mess_data, client) 151 client.messageSendToBridge(mess_data)
152 else: 152 else:
153 log.warning(u"invalid message carbons received:\n{xml}".format( 153 log.warning(u"invalid message carbons received:\n{xml}".format(
154 xml = message_elt.toXml())) 154 xml = message_elt.toXml()))
155 return False 155 return False
156 156