From f33ff2409c45d1df043d9918d8dd9adef33b46c2 Mon Sep 17 00:00:00 2001 From: djmcgrath Date: Fri, 19 Oct 2007 12:19:40 +0000 Subject: [PATCH] * Merge r1296 from Don's branch - Use message count instead of the per-invocation stuff git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1578 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/CommandStubs.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index 580a42e..ed89824 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -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'; + my $select = 'nick,time,channel,host,message,messagecount'; if ($person eq 'random') { @seen = &randKey('seen', $select); } else { @@ -363,7 +363,7 @@ sub seen { if (&IsChanConf('seenStats') > 0) { my $i; - $i = $userstats{lc $seen[0]}{'Count'}; + $i = $seen[6] || $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); -- 2.39.2