Mercurial > xib
comparison bot.py @ 56:b048c4c03b00
Fixed encoding issues
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Thu, 27 Aug 2009 22:31:47 +0200 |
parents | c09f9523fe2e |
children | 92341dbfb8b7 |
comparison
equal
deleted
inserted
replaced
55:c09f9523fe2e | 56:b048c4c03b00 |
---|---|
265 self.error('=> Debug: ignoring '+event.eventtype(), debug=True) | 265 self.error('=> Debug: ignoring '+event.eventtype(), debug=True) |
266 return | 266 return |
267 | 267 |
268 | 268 |
269 # A string representation of the event | 269 # A string representation of the event |
270 event_str = '==> Debug: Received IRC event.\nconnection='+str(connection)+'\neventtype='+event.eventtype()+'\nsource='+str(event.source())+'\ntarget='+str(event.target())+'\narguments='+str(event.arguments()) | 270 event_str = '==> Debug: Received IRC event.\nconnection='+connection.__str__()+'\neventtype='+event.eventtype()+'\nsource='+auto_decode(event.source().__str__())+'\ntarget='+auto_decode(event.target().__str__())+'\narguments='+auto_decode(event.arguments().__str__()) |
271 | 271 |
272 | 272 |
273 if event.eventtype() in ['pubmsg', 'action', 'privmsg', 'quit', 'part', 'nick', 'kick']: | 273 if event.eventtype() in ['pubmsg', 'action', 'privmsg', 'quit', 'part', 'nick', 'kick']: |
274 if nickname == None: | 274 if nickname == None: |
275 return | 275 return |