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