]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/IrcHooks.pl
massive add-in for postgres support, contributed by troubled
[infobot.git] / src / IRC / IrcHooks.pl
index d105d8e366b8e981f28c55ce16a3fcb7c9eb49db..c158f3b9427a207faba698be423f996a252209f0 100644 (file)
@@ -926,8 +926,7 @@ sub on_public {
 
        # don't allow ppl to cheat the stats :-)
        if (defined $t && $time - $t > 60) {
-           &sqlReplace("stats", {
-               nick    => $who,
+           &sqlSet("stats", {'nick' => $who}, {
                type    => $x,
                channel => $c,
                time    => $time,