Changeset 347 for TwitterIrcGateway/TwitterIrcGatewayCore/Filter.cs
- Timestamp:
- 10/30/07 10:29:55 (14 months ago)
- Files:
-
- 1 modified
-
TwitterIrcGateway/TwitterIrcGatewayCore/Filter.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
TwitterIrcGateway/TwitterIrcGatewayCore/Filter.cs
r343 r347 10 10 { 11 11 [XmlInclude(typeof(Drop))] 12 [XmlInclude(typeof(Re route))]12 [XmlInclude(typeof(Redirect))] 13 13 [XmlInclude(typeof(RewriteContent))] 14 14 public class Filters … … 204 204 } 205 205 206 public class Re route: FilterItem206 public class Redirect : FilterItem 207 207 { 208 208 private String _matchPattern = ""; … … 236 236 public override void Execute(FilterArgs args) 237 237 { 238 if (String.IsNullOrEmpty(_channelName)) 239 return; 240 238 241 if (!String.IsNullOrEmpty(_matchPattern)) 239 242 { … … 266 269 public override string ToString() 267 270 { 268 return "Re route:"271 return "Redirect:" 269 272 + ((Enabled) ? "" : "[DISABLED]") 270 273 + ((String.IsNullOrEmpty(_userMatchPattern)) ? "" : String.Format(" UserMatchPattern={0}", _userMatchPattern)) 271 274 + ((String.IsNullOrEmpty(_matchPattern)) ? "" : String.Format(" MatchPattern={0}", _matchPattern)) 275 + ((String.IsNullOrEmpty(_channelName)) ? "" : String.Format(" ChannelName={0}", _channelName)) 272 276 + ((_duplicate) ? " Duplicate" : "") 273 277 ;
