diff options
author | Zoffix Znet <cpan@zoffix.com> | 2016-01-03 12:08:37 -0500 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2016-01-03 12:08:37 -0500 |
commit | 5db14568632b4332dff496cf892535dc63d7561b (patch) | |
tree | d8ce68ff5dd757613db668636cf4dabedddd0582 /lib | |
parent | d7f602413382660a58d14cc78e666e7f3c4b87bf (diff) |
Add .notice method
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IRC/Client.pm6 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6 index 6eb610f..cbdb335 100644 --- a/lib/IRC/Client.pm6 +++ b/lib/IRC/Client.pm6 @@ -69,6 +69,13 @@ method privmsg (Str $who, Str $what) { self; } +method notice (Str $who, Str $what) { + my $msg = "NOTICE $who :$what\n"; + $!debug and "{plug-name}$msg".put; + $!sock.print("$msg\n"); + self; +} + method handle-event ($e) { $e<pipe> = {}; |