]> git.donarmstrong.com Git - infobot.git/commitdiff
closed 17225 -- seen only stores addressed messages. Also moved seen code from User...
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 19 Aug 2000 11:24:48 +0000 (11:24 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 19 Aug 2000 11:24:48 +0000 (11:24 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@47 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHooks.pl
src/User.pl

index 085283d4bfda68ab3d0382ef0ad819c510b458ff..d7b46fc0d8b408acfa04220fb3fb7be4463f3ff1 100644 (file)
@@ -894,6 +894,18 @@ sub hookMsg {
        &status("[$orig{who}] $orig{message}");
     }
 
+    if ((&IsParam("seenStoreAll") or !$skipmessage) and
+       &IsParam("seen") and
+       $msgType =~ /public/ and
+    ) {
+       $seencache{$who}{'time'} = time();
+       $seencache{$who}{'nick'} = $orig{who};
+       $seencache{$who}{'host'} = $uh;
+       $seencache{$who}{'chan'} = $talkchannel;
+       $seencache{$who}{'msg'}  = $orig{message};
+       $seencache{$who}{'msgcount'}++;
+    }
+
     return if ($skipmessage);
     return unless (&IsParam("minVolunteerLength") or $addressed);
 
index 4589c08a65813f1d70578d6f769231f9d41b6c1b..10f39a37c3016ae9d8fbddf966f2b1d2288bd992 100644 (file)
@@ -66,16 +66,6 @@ sub verifyUser {
        $userHandle = $userinlist;
     }
 
-    # seen.
-    if (&IsParam("seen") and $msgType =~ /public/) {
-       $seencache{$who}{'time'} = time();
-       $seencache{$who}{'nick'} = $orig{who};
-       $seencache{$who}{'host'} = $uh;
-       $seencache{$who}{'chan'} = $talkchannel;
-       $seencache{$who}{'msg'}  = $orig{message};
-       $seencache{$who}{'msgcount'}++;
-    }
-
 #    $talkWho{$talkchannel} = $orig{who};
 #    $talkWho = $orig{who};
 ### FIXME HERE.