X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Def.pm;fp=Def.pm;h=7dbec8b1f761906ddc9b83ab80622d596b76524e;hb=565ece6e27fa54253934518cc8c69ecfac9487e4;hp=d3786a25bcc4badefb679c935087242ce7e112c2;hpb=5eb5c4a1f761abfb857f55ae8d86d8f4462a29b1;p=NDIRC.git diff --git a/Def.pm b/Def.pm index d3786a2..7dbec8b 100644 --- a/Def.pm +++ b/Def.pm @@ -29,7 +29,7 @@ require Exporter; our @ISA = qw/Exporter/; our @EXPORT = qw/showCall setType takeCall covCall ignoreCall - defcall anon setDefPrio setCalc getCalc/; + defcall setDefPrio setCalc getCalc/; sub showCall { my ($msg,$command) = @_; @@ -209,22 +209,6 @@ sub defcall { } } -sub anon { - my ($msg,$command) = @_; - my ($target,$mess); - if (defined $msg && $msg =~ /^(\S+) (.+)$/){ - $target = $1; - $mess = $2; - }else{ - $ND::server->command("notice $ND::nick Usage: $command nick message"); - return; - } - if (dc()){ - $ND::server->command("msg $target ".chr(2).$mess); - $ND::server->command("msg $ND::target ".chr(3)."3$1 << $2"); - } -} - sub setCalc { my ($msg,$command) = @_; my ($id, $calc);