X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Scans.pm;h=2bd67957a37c64f420db94c0fc7051945d5cb3d8;hb=df43148278c85c28726accbec2421688260661b7;hp=a22983dd3bfb836f66a635b8dd37be1adaccc1b2;hpb=c8e65de85f3c2724a5290e0ee612b83e7f63aea0;p=NDIRC.git diff --git a/Scans.pm b/Scans.pm index a22983d..2bd6795 100644 --- a/Scans.pm +++ b/Scans.pm @@ -25,7 +25,7 @@ require Exporter; our @ISA = qw/Exporter/; -our @EXPORT = qw/addScan addScanGroup sendScan/; +our @EXPORT = qw/addScan addScanGroup/; sub addScan { my ($id,$verbose) = @_; @@ -68,21 +68,6 @@ sub addScanGroup { } } -sub sendScan { - my ($msg, $command) = @_; - my ($target,$mess); - if (defined $msg && $msg =~ /^(\S+) (.*)$/){ - $target = $1; - $mess = $2; - }else{ - $ND::server->command("notice $ND::nick syntax: $command nick message"); - return; - } - if (scanner()){ - $ND::server->command("msg $target ".chr(2).$mess.chr(3)."4 (reply with /msg $ND::scanchan)"); - $ND::server->command("msg $ND::target ${ND::C}3$target << $mess"); - } -}