diff bot.py @ 137:9f39cead20cb

reduced duplication of error messages Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 16 Jan 2010 17:01:17 +0100
parents 931a5edc7971
children 46c02cc89f18
line wrap: on
line diff
--- a/bot.py
+++ b/bot.py
@@ -615,8 +615,7 @@ class Bot(threading.Thread):
 						if banned.irc_connection != 'bannedfromchan':
 							banned.irc_connection = 'bannedfromchan'
 							self.error(event_str, debug=True)
-							self.error('[Notice] the nickname "'+event.target()+'" is banned from the IRC chan of bridge "'+str(bridge)+'"')
-							bridge.say('[Warning] the nickname "'+event.target()+'" is banned from the IRC chan')
+							bridge.say('[Warning] the nickname "'+event.target()+'" is banned from the IRC chan', log=True)
 						else:
 							self.error('=> Debug: ignoring '+event.eventtype(), debug=True)
 					except Bridge.NoSuchParticipantException: