comparison irclib.py @ 155:63db565438bd

fixed the halt command Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 17 Jan 2010 23:24:00 +0100
parents 332bb2e8e71e
children 73b6c8d20da7
comparison
equal deleted inserted replaced
154:25f6778b8841 155:63db565438bd
252 Arguments: 252 Arguments:
253 253
254 timeout -- Parameter to pass to process_once. 254 timeout -- Parameter to pass to process_once.
255 """ 255 """
256 while 1: 256 while 1:
257 if self.bot.halt:
258 self.disconnect_all(message='Stopping bot')
259 break
257 try: 260 try:
258 self.process_once(timeout) 261 self.process_once(timeout)
259 except ServerNotConnectedError: 262 except ServerNotConnectedError:
260 self.bot.restart() 263 self.bot.restart()
261 except: 264 except: