diff options
author | Zoffix Znet <cpan@zoffix.com> | 2016-07-27 08:25:54 -0400 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2016-07-27 08:25:54 -0400 |
commit | 27d280b64e92029e9e83b0158f1394b84b64bce8 (patch) | |
tree | b3620a48ef1b24a20306736ba74599c28ce44df3 /lib | |
parent | 7fa988fc8586bcc5ea800326921f323f8078c318 (diff) |
Add PART method handler
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IRC/Client.pm6 | 6 |
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' }; |