]> git.donarmstrong.com Git - infobot.git/commitdiff
broken stats recording
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 4 Aug 2009 17:48:24 +0000 (17:48 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 4 Aug 2009 17:48:24 +0000 (17:48 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1870 c11ca15a-4712-0410-83d8-924469b57eb5

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,
             }
         );
     }