From 01e3f389ace1cda8aad46fbb00f5cdb0d9078aaa Mon Sep 17 00:00:00 2001 From: timriker Date: Tue, 4 Aug 2009 17:48:24 +0000 Subject: [PATCH] broken stats recording git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1870 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Misc.pl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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, } ); } -- 2.39.5