# HG changeset patch # User Charly COSTE # Date 1251159763 -7200 # Node ID dbb7c29a71e212649bba6e891ef6c3bbab1edd10 # Parent 714e78fb912ef314d97c386890c0caa36f4f1ee1 Ignore messages sent by self Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -276,6 +276,10 @@ class bot(Thread): if event.eventtype() in ['quit', 'part', 'nick']: self.error(event_str, debug=True) + if event.eventtype() in ['pubmsg', 'action'] and nickname == self.nickname: + self.error('=> Debug: ignoring IRC '+event.eventtype()+' sent by self', debug=True) + return + # TODO: lock self.bridges for thread safety for bridge in self.bridges: if connection.server != bridge.irc_server: