summaryrefslogtreecommitdiff
path: root/IrcConnection.py
diff options
context:
space:
mode:
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)