From 31292f63486d83b14ea9975d805147091180a003 Mon Sep 17 00:00:00 2001 From: dms Date: Sat, 19 Aug 2000 11:24:48 +0000 Subject: [PATCH] closed 17225 -- seen only stores addressed messages. Also moved seen code from User.pl to IrcHooks.pl git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@47 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/IRC/IrcHooks.pl | 12 ++++++++++++ src/User.pl | 10 ---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/IRC/IrcHooks.pl b/src/IRC/IrcHooks.pl index 085283d..d7b46fc 100644 --- a/src/IRC/IrcHooks.pl +++ b/src/IRC/IrcHooks.pl @@ -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); diff --git a/src/User.pl b/src/User.pl index 4589c08..10f39a3 100644 --- a/src/User.pl +++ b/src/User.pl @@ -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. -- 2.39.2