Before handling a message, check the sender if the bot
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user