From baaa93d2fa1ca3393ffdd8faf2836952e9abe261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 19 Aug 2018 19:52:42 +0300 Subject: [PATCH] Add irc.quit() --- ircbot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ircbot.py b/ircbot.py index 2c5214c..5af87fb 100644 --- a/ircbot.py +++ b/ircbot.py @@ -128,6 +128,11 @@ class API: with self.serverthread_object.channels_lock: self.serverthread_object.channels = channels + def quit(self): + self.serverthread_object.control_channel.send((controlmessage_types.quit,)) + self.serverthread_object.logging_channel.send((logmessage_types.internal, internal_submessage_types.quit)) + cron.quit(self.cron) + def log(self, *args, **kwargs): """Log a status message. Supports normal print() arguments.""" self.serverthread_object.logging_channel.send((logmessage_types.status, args, kwargs))