summaryrefslogtreecommitdiff
path: root/IrcConnection.py
diff options
context:
space:
mode:
authorJoe Robinson <joe@grabyo.com>2017-04-19 17:14:58 +0100
committerJoe Robinson <joe@grabyo.com>2017-04-19 17:14:58 +0100
commitdf3e1a392488c626245209816a0405c39d8396d5 (patch)
tree2f5928fe5e8959d72a2a9ad5e66e64da1db645d7 /IrcConnection.py
parentae5ad64bfe0e339315b316cd832078f6b86800f6 (diff)
Handle quit messages
Diffstat (limited to 'IrcConnection.py')
-rw-r--r--IrcConnection.py3
1 files changed, 3 insertions, 0 deletions
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)