]> ruin.nu Git - NDIRC.git/blobdiff - Commands/Basic.pm
Let Delling take over Eos' responsibilities
[NDIRC.git] / Commands / Basic.pm
index 1249f201586bc6155be184807f3ddee1697196bb..62aa717eeb9327b4188b43f829968991b4f2adb7 100644 (file)
@@ -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, "<b>$mess</b> <c04>(reply with /msg "
+                       .$c->channel.")</c>");
+               $c->message(privmsg => $c->channel, "<c03>$target << $mess</c>");
+       }
+};
+
+
 1;