]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Misc.pl
broken stats recording
[infobot.git] / src / Misc.pl
index e999a2fdcd1978b57c940b09bacd83c28b977dcf..9545f6c6f4c54c5fd1e3dbb384d248e30ae3b852 100644 (file)
@@ -688,8 +688,8 @@ sub closeStats {
             'stats',
             'counter',
             {
-                nick => $type,
-                type => 'cmdstats',
+                'nick' => $type,
+                'type' => 'cmdstats',
             }
         );
         my $z = 0;
@@ -699,11 +699,13 @@ sub closeStats {
 
         &sqlSet(
             'stats',
-            { 'nick' => $type },
             {
-                type    => 'cmdstats',
-                'time'  => time(),
-                counter => $i,
+               'nick' => $type,
+                'type' => 'cmdstats',
+           },
+            {
+                'time' => time(),
+                'counter' => $i,
             }
         );
     }