This commit is contained in:
2019-02-27 00:58:18 +01:00
parent eb46c860d4
commit 95060e9cfb

View File

@@ -648,7 +648,7 @@ class XMPPTelegram(ComponentXMPP):
self.tg_connections[hndl.jid].invoke( DeleteMessagesRequest([msg_id], revoke = True) ) self.tg_connections[hndl.jid].invoke( DeleteMessagesRequest([msg_id], revoke = True) )
def process_chat_user_command(self, iq): def process_chat_user_command(self, msg):
logging.info("received command "+str(msg["body"])+" from "+str(msg["from"])+" for "+str(msg["to"])) logging.info("received command "+str(msg["body"])+" from "+str(msg["from"])+" for "+str(msg["to"]))
is_command = msg["body"].startswith("!") and msg["body"][1] != "_" is_command = msg["body"].startswith("!") and msg["body"][1] != "_"