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 a3db084..2df5913 100644
--- a/IrcConnection.py
+++ b/IrcConnection.py
@@ -12,6 +12,7 @@ class ircConnectThread(QThread):
namreply_sig = pyqtSignal(str, str)
quit_sig = pyqtSignal(str, str)
kick_sig = pyqtSignal(str, str, str, str)
+ user_mode_sig = pyqtSignal(str, str, str, str)
def __init__(self, handler):
QThread.__init__(self)
self.reactor = irc.client.Reactor()
@@ -87,6 +88,8 @@ class ircConnectThread(QThread):
def on_mode(self, connection, event):
print(event)
+ source_nick = event.source.split("!")[0]
+ self.user_mode_sig.emit(event.target, event.arguments[1], event.arguments[0], source_nick)
def on_cur_topic(self, connection, event):
self.topic_sig.emit(event.arguments[0], event.arguments[1])