]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/News.pl
- calculated delta time negatively.
[infobot.git] / src / Modules / News.pl
index 54e5591fc9098fb77a9e097f6feb87b86ee57816..fcf62b9ca28bba6a357fedff093902811cbb291d 100644 (file)
@@ -789,7 +789,10 @@ sub latest {
     if (!$flag) {
        return unless ($unread);
 
-       if ($::cache{newsTime} - time() < 5) {
+       # just a temporary measure not to flood ourself off the 
+       # network with news until we get global notice() and msg()
+       # throttling.
+       if (time() - ($::cache{newsTime} || 0) < 5) {
            &::status("news: not displaying latest notice to $who/$chan.");
            return;
        }