CVS: blootbot/src UserExtra.pl,1.55,1.56
Brought to you by:
timriker
From: David <dm...@us...> - 2002-11-24 16:47:25
|
Update of /cvsroot/blootbot/blootbot/src In directory sc8-pr-cvs1:/tmp/cvs-serv9070 Modified Files: UserExtra.pl Log Message: - sql function changeover stuff. Index: UserExtra.pl =================================================================== RCS file: /cvsroot/blootbot/blootbot/src/UserExtra.pl,v retrieving revision 1.55 retrieving revision 1.56 diff -u -r1.55 -r1.56 --- UserExtra.pl 23 Nov 2002 20:03:30 -0000 1.55 +++ UserExtra.pl 24 Nov 2002 16:47:23 -0000 1.56 @@ -817,10 +817,13 @@ "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) { |