Implement "!bug <number>" command.

svn path=/trunk/; revision=20165
This commit is contained in:
Filip Navara 2005-12-14 18:13:05 +00:00
parent bd0b0b3d09
commit 27f6a74ba6
8 changed files with 89 additions and 6 deletions

View file

@ -158,6 +158,18 @@ namespace TechBot.Console
}
}
private static string BugUrl
{
get
{
string optionName = "BugUrl";
string s = ConfigurationSettings.AppSettings[optionName];
VerifyRequiredOption(optionName,
s);
return s;
}
}
private static void RunIrcService()
{
IrcService ircService = new IrcService(IRCServerHostName,
@ -170,7 +182,8 @@ namespace TechBot.Console
WinerrorXml,
HresultXml,
WmXml,
SvnCommand);
SvnCommand,
BugUrl);
ircService.Run();
}
@ -190,7 +203,8 @@ namespace TechBot.Console
WinerrorXml,
HresultXml,
WmXml,
SvnCommand);
SvnCommand,
BugUrl);
service.Run();
while (true)
{