From cea2afccc62e35c87b9f4b3f714ab290634d65d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Ba=C5=9Faran?= Date: Thu, 24 Mar 2016 18:35:43 +0200 Subject: [PATCH] changed messge recv type attr to message_type --- opt/ahenk/base/messaging/Messager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opt/ahenk/base/messaging/Messager.py b/opt/ahenk/base/messaging/Messager.py index 6d1850c..b2e4932 100644 --- a/opt/ahenk/base/messaging/Messager.py +++ b/opt/ahenk/base/messaging/Messager.py @@ -105,9 +105,9 @@ class Messager(slixmpp.ClientXMPP): def recv_direct_message(self, msg): if msg['type'] in ('chat', 'normal'): j = json.loads(str(msg['body'])) - type = j['type'] - self.logger.debug('[Messager] Fired event is: ' + type) - self.event_manger.fireEvent(type, str(msg['body'])) + message_type = j['type'] + self.logger.debug('[Messager] Fired event is: ' + message_type) + self.event_manger.fireEvent(message_type, str(msg['body'])) def connect_to_server(self): # Connect to the XMPP server and start processing XMPP stanzas. try: