X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FUserExtra.pl;h=e38fa950b04a0495ff5fdadd765123d54564d028;hb=492eb2c99e1b47c2fb0c729cb9ff196a4081fcd9;hp=d468fff6eb3e7501c31fbe6cf98bb9f069062b7d;hpb=2ff352d658fa6c0cc28c59eb9aa6c20b8fbede2d;p=infobot.git 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) {