Mercurial > xib
changeset 158:73b6c8d20da7
fixed IRC.disconnect_all() (added "volontary" argument)
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Tue, 19 Jan 2010 09:08:44 +0100 |
parents | ce0eb3e969a7 |
children | da2f2dc61e74 |
files | irclib.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.