From: timriker Date: Tue, 4 Aug 2009 17:48:24 +0000 (+0000) Subject: broken stats recording X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=commitdiff_plain;h=01e3f389ace1cda8aad46fbb00f5cdb0d9078aaa broken stats recording git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1870 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Misc.pl b/src/Misc.pl index e999a2f..9545f6c 100644 --- a/src/Misc.pl +++ b/src/Misc.pl @@ -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, } ); }