summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-14 00:02:54 +0100
committerlassulus <lassulus@googlemail.com>2014-01-14 00:02:54 +0100
commitd9735e0b96e3875d5866f582de56c7fb8543ff48 (patch)
tree67b9847ae3f1f5a6d096a80832b87c1a33522b50
parente13e7a4477108cefd004a65a8eee28abe0ec28c1 (diff)
reaktor: disconnect function
-rw-r--r--Reaktor/IRC/ircasy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py
index 6b478de7..6b7567cc 100644
--- a/Reaktor/IRC/ircasy.py
+++ b/Reaktor/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()