From: dms Date: Sun, 24 Nov 2002 16:47:23 +0000 (+0000) Subject: - sql function changeover stuff. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=322bfc67311e5e2e198b77a269a8b559fe72c05c;p=infobot.git - sql function changeover stuff. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@707 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/UserExtra.pl b/blootbot/src/UserExtra.pl index d468fff..e38fa95 100644 --- a/blootbot/src/UserExtra.pl +++ b/blootbot/src/UserExtra.pl @@ -817,10 +817,13 @@ sub userCommands { "kB of memory." ); + return; + # todo: use dbGetColNiceHash(). - my %hash = &dbGetCol("stats", "nick,counter", "type='cmdstats'". -# " ORDER BY counter DESC LIMIT 3", 1); - " ORDER BY counter DESC", 1); + my %hash = &sqlSelectColHash("stats", "nick,counter", + { type => "cmdstats" }, 1); +# does ORDER matter when used with a hash? +# " ORDER BY counter DESC", 1); if (0) { foreach (keys %hash) {