From 8642373ef5b068ff7996fc9172d9d857d8ad2934 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 14 Jan 2014 00:02:54 +0100 Subject: reaktor: disconnect function --- IRC/ircasy.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'IRC') diff --git a/IRC/ircasy.py b/IRC/ircasy.py index 6b478de..6b7567c 100644 --- a/IRC/ircasy.py +++ b/IRC/ircasy.py @@ -117,6 +117,10 @@ class asybot(asychat): self.log.debug('>> %s' % msg) asychat.push(self, msg) + def disconnect(self): + self.push('QUIT') + self.close() + def reconnect(self): self.push('QUIT') self.close() -- cgit v1.2.3