]> git.donarmstrong.com Git - infobot.git/blobdiff - src/UserExtra.pl
show last item too
[infobot.git] / src / UserExtra.pl
index acf40dd61b8e4a224a8d36e9a5ec9c68db0112ed..12ec9c324a2f6729c5381cf2341b602f9da802c5 100644 (file)
@@ -184,7 +184,7 @@ sub factinfo {
 sub factstats {
     my $type = shift(@_);
 
-    &Forker("factoids", sub {
+    &Forker("Factoids", sub {
        &performStrictReply( &CmdFactStats($type) );
     } );
 }
@@ -711,23 +711,6 @@ sub userCommands {
        );
 
        return;
-
-       my %hash = &sqlSelectColHash("stats", "nick,counter",
-               { type => "cmdstats" }, 1);
-# ORDER won't be retained in a hash
-#                      " ORDER BY counter DESC", 1);
-
-if (0) {
-       foreach (keys %hash) {
-           my $i = $_;
-           foreach (keys %{ $hash{$i} }) {
-               &DEBUG("cmdstats: $hash{$i}{$_} = $_");
-           }
-       }
-       &DEBUG("end of cmdstats.");
-}
-
-       return;
     }
 
     # wantNick. xk++