]> git.donarmstrong.com Git - infobot.git/blobdiff - src/CommandStubs.pl
* Fixed a bug that caused seen stats flush to crash related to sqlite not having...
[infobot.git] / src / CommandStubs.pl
index 95878b11a32db0ca9f502301c811b9b0ae49b4f4..4a3fb572dcf9ecd4f4d16f62d678d1d18ddb46aa 100644 (file)
@@ -331,7 +331,7 @@ sub seen {
     &seenFlush();      # very evil hack. oh well, better safe than sorry.
 
     # TODO: convert to &sqlSelectRowHash();
-    my $select = 'nick,time,channel,host,message,messagecount';
+    my $select = 'nick,time,channel,host,message';
     if ($person eq 'random') {
        @seen = &randKey('seen', $select);
     } else {
@@ -363,7 +363,7 @@ sub seen {
 
        if (&IsChanConf('seenStats') > 0) {
            my $i;
-           $i = $seen[6] || $userstats{lc $seen[0]}{'Count'};
+           $i = $userstats{lc $seen[0]}{'Count'};
            $reply .= ". Has said a total of \002$i\002 messages" if (defined $i);
            $i = $userstats{lc $seen[0]}{'Time'};
            $reply .= '. Is idling for '.&Time2String(time() - $i) if (defined $i);