Add a stop command for IRC object

This commit is contained in:
Darks 2022-03-11 19:57:01 +01:00
parent fab0166ad4
commit 3f7b984a2f
Signed by: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 4 additions and 0 deletions

4
irc.py
View File

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