irc.py

changeset 81
ce5d27463356
parent 76
a2fe9ba3041a
child 92
da291d9426ea
equal deleted inserted replaced
80:0f6bfd359a7f 81:ce5d27463356
212 212
213 def handle_error(self): 213 def handle_error(self):
214 raise RestartError (traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback)) 214 raise RestartError (traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))
215 215
216 def restart(self): 216 def restart(self):
217 raise RestartError() 217 raise RestartError('')
218 218
219 def privmsg (self, channel, msg): 219 def privmsg (self, channel, msg):
220 self.write ("PRIVMSG %s :%s" % (channel, msg)) 220 self.write ("PRIVMSG %s :%s" % (channel, msg))
221 221
222 def close_connection (self, message): 222 def close_connection (self, message):

mercurial