aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/IRC/Client.pm66
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6
index 942418a..941a877 100644
--- a/lib/IRC/Client.pm6
+++ b/lib/IRC/Client.pm6
@@ -38,6 +38,12 @@ method join (*@channels, :$server) {
self;
}
+method part (*@channels, :$server) {
+ self.send-cmd: 'PART', $_, :$server for @channels;
+
+ self;
+}
+
method run {
self!prep-servers;
.irc = self for @.plugins.grep: { .DEFINITE and .^can: 'irc' };