Changeset 130

Show
Ignore:
Timestamp:
10/04/05 19:04:09 (3 years ago)
Author:
ogawa
Message:

Modify messages

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • DuplicatedTBPingLookup/trunk/DuplicatedTBPingLookup.pl

    • Property svn:keywords set to Id Author Date Rev
    r129 r130  
    88# Copyright (c) 2005 Yujiro Araki 
    99# 
    10 # Ported to MT 3.2 JunkFilter by Hirotaka Ogawa (Oct 3, 2005) 
     10# Ported to MT 3.2 JunkFilter by Hirotaka Ogawa 
     11# $Id$ 
    1112# 
    1213package MT::Plugin::DuplicatedTBPingLookup; 
     
    2021my $plugin = MT::Plugin::DuplicatedTBPingLookup->new({ 
    2122    name => 'Duplicated TBPing Lookup', 
    22     description => "Mark duplicated trackback pings as 'junk'.", 
     23    description => "Lookup duplicated trackback ping from the same source, and mark it as a 'junk'.", 
    2324    version => $VERSION, 
    2425    config_template => \&template, 
     
    5152    while (my $ping = $iter->()) { 
    5253        if ($ping->source_url eq $url) { 
    53             my $weight = 
    54                 $plugin->get_config_value('dtl_score_weight', 'blog:' . $blog_id) || 
    55                 $plugin->get_config_value('dtl_score_weight') || 
    56                 1; 
     54            my $weight = $plugin->get_config_value('dtl_score_weight', 'blog:' . $blog_id) 
     55                || $plugin->get_config_value('dtl_score_weight') || 1; 
    5756            return (-1 * $weight, 
    58                     "Duplicated trackback ping from the same source url: $url"); 
     57                    "Duplicated trackback ping from the same source: $url"); 
    5958        } 
    6059    }