# HG changeset patch # User Charly COSTE # Date 1263888524 -3600 # Node ID 73b6c8d20da727ed0210f4857ca438834187a407 # Parent ce0eb3e969a7c9c3e88865fb2e1e8f57593c1a04 fixed IRC.disconnect_all() (added "volontary" argument) Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- a/irclib.py +++ b/irclib.py @@ -264,10 +264,10 @@ class IRC: except: self.bot.error('[Error] Unkonwn exception on IRC thread:\n'+traceback.format_exc(), send_to_admins=True) - def disconnect_all(self, message=""): + def disconnect_all(self, message="", volontary=True): """Disconnects all connections.""" for c in self.connections: - c.disconnect(message) + c.disconnect(message, volontary=volontary) def add_global_handler(self, event, handler, priority=0): """Adds a global handler function for a specific event type.