]> git.donarmstrong.com Git - infobot.git/commitdiff
- sql function changeover stuff.
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 24 Nov 2002 16:47:23 +0000 (16:47 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 24 Nov 2002 16:47:23 +0000 (16:47 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@707 c11ca15a-4712-0410-83d8-924469b57eb5

src/UserExtra.pl

index d468fff6eb3e7501c31fbe6cf98bb9f069062b7d..e38fa950b04a0495ff5fdadd765123d54564d028 100644 (file)
@@ -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) {