]> git.donarmstrong.com Git - infobot.git/blobdiff - src/UserExtra.pl
- sql function changeover stuff.
[infobot.git] / 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) {