]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/News.pl
- added support of ircTextCounters - works! thanks to #perl@OPN.
[infobot.git] / src / Modules / News.pl
index 8259ca6878920950e578c4cca08d8944c92c59f0..e9a1ef29ac6ffaef59a34cfff26a49741de59a19 100644 (file)
@@ -681,7 +681,9 @@ sub set {
 sub latest {
     my($tchan, $flag) = @_;
 
-    $chan ||= $tchan;  # hack hack hack.
+    # hack hack hack.
+    $chan      ||= $tchan;
+    $who       ||= $::who;
 
     # todo: if chan = undefined, guess.
 #    if (!exists $::news{$chan}) {
@@ -709,7 +711,7 @@ sub latest {
     if (!defined $t) {
        &::DEBUG("news: something went really wrong.");
        &::DEBUG("news: chan => $chan, ::chan => $::chan");
-       &::notice($::who, "something went really wrong.");
+#      &::notice($::who, "something went really wrong.");
        return;
     }