]> ruin.nu Git - NDIRC.git/blobdiff - Scans.pm
Converted sendScan and called it anon for scanners too
[NDIRC.git] / Scans.pm
index a22983dd3bfb836f66a635b8dd37be1adaccc1b2..2bd67957a37c64f420db94c0fc7051945d5cb3d8 100644 (file)
--- 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");
-       }
-}