my $type = uc( ($event->args)[1] );
my $nick = lc $event->nick();
+ &status("on_dcc type=$type nick=$nick sock=$sock");
+
# pity Net::IRC doesn't store nuh. Here's a hack :)
if (!exists $nuh{lc $nick}) {
$conn->whois($nick);
if ($type eq 'SEND') { # GET for us.
# incoming DCC SEND. we're receiving a file.
my $get = ($event->args)[2];
- open(DCCGET,">$get");
-
- $conn->new_get($event, \*DCCGET);
+ &status("DCC: not Initializing GET from $nick to '$param{tempDir}/$get'");
+ # FIXME: do we want to get anything?
+ return;
+ #open(DCCGET,">$param{tempDir}/$get");
+ #$conn->new_get($event, \*DCCGET);
} elsif ($type eq 'GET') { # SEND for us?
- &status("DCC: Initializing SEND for $nick.");
+ &status("DCC: not Initializing SEND for $nick.");
+ # FIXME: do we want to do anything?
+ return;
$conn->new_send($event->args);
} elsif ($type eq 'CHAT') {
if (exists $dcc{'SEND'}{$nick} and -f "$param{tempDir}/$nick.txt") {
&status("${b_green}DCC SEND$ob close from $b_cyan$nick$ob");
- &status("dcc_close: purging $nick.txt from Debian.pl");
+ &status("dcc_close: purging DCC send $nick.txt");
unlink "$param{tempDir}/$nick.txt";
delete $dcc{'SEND'}{$nick};
my $nick = lc $event->nick();
my $sock = ($event->to)[0];
+ &status("on_dcc_open type=$type nick=$nick sock=$sock");
+
$msgType = 'chat';
$type ||= "???";
### BUG: who is set to bot's nick?
}
} elsif ($type eq 'SEND') {
- &DEBUG("Starting DCC receive.");
+ &status("Starting DCC receive.");
foreach ($event->args) {
- &DEBUG(" => '$_'.");
+ &status(" => '$_'.");
}
} else {
&verifyUser($nick, $nuh{lc $nick});
if (!exists $users{$userHandle}{HOSTS}) {
- &pSReply("you have no hosts defined in my user file; rejecting.");
+ &performStrictReply("you have no hosts defined in my user file; rejecting.");
$sock->close();
return;
}
sub on_public {
$conn = shift(@_);
my ($event) = @_;
- my $msg = ($event->args)[0];
+ my $msg = ($event->args)[0];
$chan = lc( ($event->to)[0] ); # CASING.
my $nick = $event->nick;
$who = $nick;