C# Class Bot.Processors.UrlTitles

Inheritance: Bot.Core.Processors.AsyncProcessor
Datei anzeigen Open project: Crobol/Bot

Public Methods

Method Description
UrlTitles ( List urlPatterns ) : System

Protected Methods

Method Description
ExtractUrls ( string message, Regex urlMatcher ) : IList
GetTitle ( string url ) : string
GetTitles ( IList urls, IList whitelist ) : IList
GetTitles ( string message, List whitelist ) : IList

Looks for URLs in message and prints out the inner text in the title element

GetTitles ( string message, Regex urlMatcher ) : IList

Looks for URLs in ircMessage and prints out the inner text in the title element

Worker ( IrcEventArgs e ) : void

Private Methods

Method Description
UrlTitles ( [ config ) : System

Method Details

ExtractUrls() protected method

protected ExtractUrls ( string message, Regex urlMatcher ) : IList
message string
urlMatcher System.Text.RegularExpressions.Regex
return IList

GetTitle() protected method

protected GetTitle ( string url ) : string
url string
return string

GetTitles() protected method

protected GetTitles ( IList urls, IList whitelist ) : IList
urls IList
whitelist IList
return IList

GetTitles() protected method

Looks for URLs in message and prints out the inner text in the title element
protected GetTitles ( string message, List whitelist ) : IList
message string
whitelist List
return IList

GetTitles() protected method

Looks for URLs in ircMessage and prints out the inner text in the title element
protected GetTitles ( string message, Regex urlMatcher ) : IList
message string
urlMatcher System.Text.RegularExpressions.Regex
return IList

UrlTitles() public method

public UrlTitles ( List urlPatterns ) : System
urlPatterns List
return System

Worker() protected method

protected Worker ( IrcEventArgs e ) : void
e Meebey.SmartIrc4net.IrcEventArgs
return void