diff options
author | Joe Robinson <joe@grabyo.com> | 2017-04-20 17:02:28 +0100 |
---|---|---|
committer | Joe Robinson <joe@grabyo.com> | 2017-04-20 17:02:28 +0100 |
commit | 04a26f18dd9841c07aeb0fbbb1b30e71308ba068 (patch) | |
tree | af74cea19af4cff73bb48a790a003584d8557bfe /IrcConnection.py | |
parent | 4e172068e8e817d80d2e9575289feb8a4314be49 (diff) |
Add ability to /part channels
Diffstat (limited to 'IrcConnection.py')
-rw-r--r-- | IrcConnection.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |