Before handling a message, check the sender if the bot
This commit is contained in:
parent
a41e3051a0
commit
6094b074cc
|
@ -215,6 +215,7 @@ class Hptoad:
|
||||||
|
|
||||||
if event["type"] == "groupchat":
|
if event["type"] == "groupchat":
|
||||||
nick = event["mucnick"]
|
nick = event["mucnick"]
|
||||||
|
if nick != self.bot_nick:
|
||||||
self.handle_muc_message(body, nick, from_id)
|
self.handle_muc_message(body, nick, from_id)
|
||||||
|
|
||||||
elif event["from"].bare == self.jid:
|
elif event["from"].bare == self.jid:
|
||||||
|
|
Loading…
Reference in New Issue