Mercurial > xib
comparison bot.py @ 55:c09f9523fe2e
I'm stupid ...
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Wed, 26 Aug 2009 20:10:50 +0200 |
parents | 2507f424773a |
children | b048c4c03b00 |
comparison
equal
deleted
inserted
replaced
54:2507f424773a | 55:c09f9523fe2e |
---|---|
286 if event.eventtype() == 'kick' and len(event.arguments()) < 1: | 286 if event.eventtype() == 'kick' and len(event.arguments()) < 1: |
287 self.error('=> Debug: length of arguments should be greater than 0 for a kick event') | 287 self.error('=> Debug: length of arguments should be greater than 0 for a kick event') |
288 return | 288 return |
289 | 289 |
290 if event.eventtype() in ['pubmsg', 'action']: | 290 if event.eventtype() in ['pubmsg', 'action']: |
291 if connection.get_nickname() == self.nickname: | 291 if connection.get_nickname() != self.nickname: |
292 self.error('=> Debug: ignoring IRC '+event.eventtype()+' not received on bot connection', debug=True) | 292 self.error('=> Debug: ignoring IRC '+event.eventtype()+' not received on bot connection', debug=True) |
293 return | 293 return |
294 if nickname == self.nickname: | 294 if nickname == self.nickname: |
295 self.error('=> Debug: ignoring IRC '+event.eventtype()+' sent by self', debug=True) | 295 self.error('=> Debug: ignoring IRC '+event.eventtype()+' sent by self', debug=True) |
296 return | 296 return |