my $startString = scalar(gmtime $^T);
my $upString = &Time2String(time() - $^T);
my $factoids = &countKeys("factoids");
- my $botmail = &countKeys("botmail");
$count{'Commands'} = 0;
foreach (keys %cmdstats) {
&fixPlural("command",$count{'Commands'}).
". I have been awake for $upString this session, and ".
"currently reference \002$factoids\002 factoids. ".
- "I have \002$botmail\002 ". &fixPlural("message", $botmail). ". ".
"I'm using about \002$memusage\002 ".
"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) {