X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Commands%2FBasic.pm;h=62aa717eeb9327b4188b43f829968991b4f2adb7;hp=1249f201586bc6155be184807f3ddee1697196bb;hb=827dca1b13ddf19dce2dee7406888c676ca1fd8a;hpb=734f71c099149b73077c64112bbe15ad14f468a2
diff --git a/Commands/Basic.pm b/Commands/Basic.pm
index 1249f20..62aa717 100644
--- a/Commands/Basic.pm
+++ b/Commands/Basic.pm
@@ -80,5 +80,20 @@ command cmd => {
}
};
+command anon => {
+ help => q(syntax: .anon nick message),
+ type => q(anon),
+ acl => q(irc_anon),
+}, class extends NDIRC::Command {
+ method execute($c,$msg) {
+ my ($target,$mess) = $msg =~ /^(\S+) (.*)$/ or die 'ARGS';
+
+ $c->message(privmsg => $target, "$mess (reply with /msg "
+ .$c->channel.")");
+ $c->message(privmsg => $c->channel, "$target << $mess");
+ }
+};
+
+
1;