From 3f7b984a2f565f30576d302c2637b992859cba69 Mon Sep 17 00:00:00 2001 From: Darks Date: Fri, 11 Mar 2022 19:57:01 +0100 Subject: [PATCH] Add a stop command for IRC object --- irc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irc.py b/irc.py index f16ea1b..606b6a6 100644 --- a/irc.py +++ b/irc.py @@ -34,6 +34,10 @@ class IRC(object): self.connected = True + def stop(self): + """ Stop the IRC layer """ + self._handler.terminate() + def run(self): """ Handle new messages """ while True: