]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/IrcHooks.pl
closed 17225 -- seen only stores addressed messages. Also moved seen code from User...
[infobot.git] / src / IRC / IrcHooks.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);