]> ruin.nu Git - NDIRC.git/blobdiff - Commands/Def.pm
Format for ally def page changed
[NDIRC.git] / Commands / Def.pm
index bdfc6776c9beaba28722f790246f886b40aea2e8..099d706ddc50b8ac80ee42aee2b26dd29ecef910 100644 (file)
@@ -25,20 +25,6 @@ use feature ':5.10';
 use MooseX::Declare;
 use NDIRC::Dispatcher;
 
-command anon => {
-       help => q(syntax: .anon nick message),
-       type => q(def),
-       acl => q(irc_anondef),
-}, class extends NDIRC::Command {
-       method execute($c,$msg) {
-
-               my ($target,$mess) = $msg =~ /^(\S+) (.*)$/ or die 'ARGS';
-
-               $c->message(privmsg => $target, "<b>$mess</b>");
-               $c->message(privmsg => $c->channel, "<c03>$target << $mess</c>");
-       }
-};
-
 command defcall => {
        help => q(syntax: .defcall [callid] | if a call id is given, then shiptypes and eta will be fetched from the database and added to the message),
        type => q(def),
@@ -236,7 +222,7 @@ command report_incs => {
        use Try::Tiny;
        method execute($c,$msg) {
 
-               $msg =~ /(\d+):(\d+):(\d+)\*?\s+(\d+):(\d+):(\d+)\s+([^:]*\S+)\s+(?:Ter|Cat|Xan|Zik|Etd)\s+([\d,]+)\s+Attack\s+(\d+)/
+               $msg =~ /(\d+):(\d+):(\d+)\*?\s+(\d+):(\d+):(\d+)\s+([^:]*\S+)\s+(?:Ter|Cat|Xan|Zik|Etd)\s+([\d,]+)\s+(?:Attack\s+)?(\d+)/
                || $msg =~ /(\d+):(\d+):(\d+)\s+(\d+):(\d+):(\d+)\s+\((?:Ter|Cat|Xan|Zik|Etd)\)\s+([^,]*\S+)\s+([\d,]+)\s+(\d+)\s+\(\d+\)/
                        or return;
                my $dbh = $c->model;