]> ruin.nu Git - ndwebbie.git/blobdiff - ND/Include.pm
show forum thread on intel
[ndwebbie.git] / ND / Include.pm
index d77121fa39e28c091c1328ed2fe1a75bbcc1f759..5df59fc2c110ed5cd5f09718c5a9ba487a8c12e5 100644 (file)
@@ -26,7 +26,7 @@ require Exporter;
 our @ISA = qw/Exporter/;
 
 our @EXPORT = qw/isMember isHC isDC isBC isOfficer isScanner isIntel isTech parseMarkup min max listTargets
-       alliances intelquery generateClaimXml markThreadAsRead/;
+       alliances intelquery generateClaimXml/;
 
 sub isMember {
        return exists $ND::GROUPS{Members} || isTech();
@@ -68,17 +68,6 @@ sub parseMarkup {
        return $text;
 }
 
-sub markThreadAsRead {
-       my ($thread) = @_;
-       my $rows = $ND::DBH->do(q{UPDATE forum_thread_visits SET time = now() 
-WHERE uid =    $1 AND ftid = $2},undef,$ND::UID,$thread);
-       if ($rows == 0){
-               $ND::DBH->do(q{INSERT INTO forum_thread_visits (uid,ftid) VALUES ($1,$2)}
-                       ,undef,$ND::UID,$thread) or $ND::ERROR .= p($ND::DBH->errstr);
-       }elsif(not defined $rows){
-               $ND::ERROR .= p($ND::DBH->errstr);
-       }
-}
 
 sub min {
     my ($x,$y) = @_;