From 5db14568632b4332dff496cf892535dc63d7561b Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 3 Jan 2016 12:08:37 -0500 Subject: Add .notice method --- lib/IRC/Client.pm6 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') 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 = {}; -- cgit v1.1