From df3e1a392488c626245209816a0405c39d8396d5 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Wed, 19 Apr 2017 17:14:58 +0100 Subject: Handle quit messages --- IrcConnection.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'IrcConnection.py') diff --git a/IrcConnection.py b/IrcConnection.py index 45c41c1..1de189f 100644 --- a/IrcConnection.py +++ b/IrcConnection.py @@ -10,6 +10,7 @@ class ircConnectThread(QThread): join_sig = pyqtSignal(str) topic_sig = pyqtSignal(str, str) namreply_sig = pyqtSignal(str, str) + quit_sig = pyqtSignal(str, str) def __init__(self, handler): QThread.__init__(self) self.reactor = irc.client.Reactor() @@ -75,7 +76,9 @@ class ircConnectThread(QThread): print(event) def on_quit(self, connection, event): + nick = event.source.split("!")[0] print(event) + self.quit_sig.emit(nick, event.arguments[0]) def on_kick(self, connection, event): print(event) -- cgit v1.2.3