X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Commands%2FBasic.pm;h=62aa717eeb9327b4188b43f829968991b4f2adb7;hb=5684c48c49dfeb5f75b10f70149debed1247c596;hp=1249f201586bc6155be184807f3ddee1697196bb;hpb=52aa24ac076b97096ff29e7a59331654620f230c;p=NDIRC.git 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;