Add irc.quit()

This commit is contained in:
Juhani Krekelä 2018-08-19 19:52:42 +03:00
parent b2ca8a0599
commit baaa93d2fa
1 changed files with 5 additions and 0 deletions

View File

@ -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))