}
if (!defined $t) {
+# &::msg($who, "News is disabled for $chan");
&::DEBUG("news: something went really wrong.");
- &::DEBUG("news: chan => $chan, ::chan => $::chan");
-# &::notice($who, "something went really wrong.");
+ &::DEBUG("news: chan => $chan.");
return;
}
# scalar @new, !$flag
my $unread = scalar @new;
my $total = scalar keys %{ $::news{$chan} };
- if (!$flag) {
+ if (!$flag || &::IsChanConf("newsTellUnread")) {
return unless ($unread);
# just a temporary measure not to flood ourself off the
my($what) = @_;
my $item = 0;
+ $what =~ s/^\#//; # '#1' for example.
+
my %time;
foreach (keys %{ $::news{$chan} }) {
my $t = $::news{$chan}{$_}{Time};
my $found = 0;
foreach (keys %channels) {
+ # don't test for $channel{_default} elsewhere !!!
+ next if (/^\s*$/ || /^_?default$/);
next unless (&IsNickInChan($who,$_));
$found++;
&shutdown() if (defined $shm and defined $dbh);
} else { # child.
&DEBUG("b4 delfork 1");
- &delForked($modulebase);
+ &delForked($modulename);
}
exit 1;
&ERROR("cannot load my module: $modulebase");
if ($bot_pid != $$) { # child.
&DEBUG("b4 delfork 2");
- &delForked($modulebase);
+ &delForked($modulename);
exit 1;
}