Show
Ignore:
Timestamp:
10/30/07 10:29:55 (14 months ago)
Author:
tomoyo
Message:

* Redirect フィルタを追加
* Replies の扱いをいろいろ修正
* その他こまごまとした修正

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • TwitterIrcGateway/TwitterIrcGatewayCore/Filter.cs

    r343 r347  
    1010{ 
    1111    [XmlInclude(typeof(Drop))] 
    12     [XmlInclude(typeof(Reroute))] 
     12    [XmlInclude(typeof(Redirect))] 
    1313    [XmlInclude(typeof(RewriteContent))] 
    1414    public class Filters 
     
    204204    } 
    205205     
    206     public class Reroute : FilterItem 
     206    public class Redirect : FilterItem 
    207207    { 
    208208        private String _matchPattern = ""; 
     
    236236        public override void Execute(FilterArgs args) 
    237237        { 
     238            if (String.IsNullOrEmpty(_channelName)) 
     239                return; 
     240 
    238241            if (!String.IsNullOrEmpty(_matchPattern)) 
    239242            { 
     
    266269        public override string ToString() 
    267270        { 
    268             return "Reroute:" 
     271            return "Redirect:" 
    269272                + ((Enabled) ? "" : "[DISABLED]") 
    270273                + ((String.IsNullOrEmpty(_userMatchPattern)) ? "" : String.Format(" UserMatchPattern={0}", _userMatchPattern)) 
    271274                + ((String.IsNullOrEmpty(_matchPattern)) ? "" : String.Format(" MatchPattern={0}", _matchPattern)) 
     275                + ((String.IsNullOrEmpty(_channelName)) ? "" : String.Format(" ChannelName={0}", _channelName)) 
    272276                + ((_duplicate) ? " Duplicate" : "") 
    273277            ;