}
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};