Stupid bug fix

This commit is contained in:
drymer 2016-05-23 12:48:58 +02:00
parent 1af6a1e3eb
commit 9f718fc9bf
1 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class EchoBot(sleekxmpp.ClientXMPP):
msg = user + ": " + message
chat_id = update.message.chat_id
if message:
if message and str(chat_id) in self.groups:
index = self.groups.index(str(chat_id))
receiver = self.muc_rooms[index]
@ -77,7 +77,6 @@ class EchoBot(sleekxmpp.ClientXMPP):
else:
self.send_message(mto=receiver, mbody=msg,
mtype='groupchat')
update_id = update.update_id + 1
except NetworkError as e: