From 04a26f18dd9841c07aeb0fbbb1b30e71308ba068 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Thu, 20 Apr 2017 17:02:28 +0100 Subject: Add ability to /part channels --- IrcConnection.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'IrcConnection.py') diff --git a/IrcConnection.py b/IrcConnection.py index 7345f6d..08240fe 100644 --- a/IrcConnection.py +++ b/IrcConnection.py @@ -125,3 +125,10 @@ class ircConnectThread(QThread): self.c.join(channel) #TODO: handle errors such as invalid/passworded channel return True + + @pyqtSlot(str) + def part_channel(self, channel): + print(channel) + self.c.part(channel) + #TODO: handle errors such as invalid/passworded channel + return True -- cgit v1.2.3