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=492eb2c99e1b47c2fb0c729cb9ff196a4081fcd9;p=infobot.git - sql function changeover stuff. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@707 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/UserExtra.pl b/src/UserExtra.pl index d468fff..e38fa95 100644 --- a/src/UserExtra.pl +++ b/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) {