aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2016-07-27 08:25:54 -0400
committerZoffix Znet <cpan@zoffix.com>2016-07-27 08:25:54 -0400
commit27d280b64e92029e9e83b0158f1394b84b64bce8 (patch)
treeb3620a48ef1b24a20306736ba74599c28ce44df3
parent7fa988fc8586bcc5ea800326921f323f8078c318 (diff)
Add PART method handler
-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' };