]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/IrcHooks.pl
* Optimized and cleaned up SQL related to hehstats
[infobot.git] / src / IRC / IrcHooks.pl
index 47f9851ff3e0d50f0bedba715c2ea117b570ace7..319d0c078eb96282a766b59d86cd475d829c3d46 100644 (file)
@@ -925,7 +925,7 @@ sub on_public {
        $v++;
 
        # don't allow ppl to cheat the stats :-)
-       if (defined $t && $time - $t > 60) {
+       if ((defined $t && $time - $t > 60) or (!defined $t)) {
            &sqlSet('stats', {'nick' => $who}, {
                type    => $x,
                channel => $c,