mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 12:22:28 +03:00
changed messge recv type attr to message_type
This commit is contained in:
parent
510b15f1df
commit
cea2afccc6
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue