Different output for !bug command on the other channels. (#winehackers, #samba-technical)

svn path=/trunk/; revision=20590
This commit is contained in:
Maarten Bosma 2006-01-05 21:46:24 +00:00
parent 8218812468
commit 6de3d3ca11
7 changed files with 84 additions and 17 deletions

View file

@ -12,7 +12,9 @@
<add key="WinerrorXml" value="C:\IRC\TechBot\winerror.xml" />
<add key="HresultXml" value="C:\IRC\TechBot\hresult.xml" />
<add key="WmXml" value="C:\IRC\TechBot\wm.xml" />
<add key="SvnCommand" value="svn co svn://svn.reactos.com/trunk/reactos" />
<add key="BugUrl" value="www.reactos.org/bugzilla/show_bug.cgi?id={0}" />
<add key="SvnCommand" value="svn co svn://svn.reactos.org/trunk/reactos" />
<add key="BugUrl" value="http://www.reactos.org/bugzilla/show_bug.cgi?id={0}" />
<add key="WineBugUrl" value="http://bugs.winehq.org/show_bug.cgi?id={0}" />
<add key="SambaBugUrl" value="https://bugzilla.samba.org/show_bug.cgi?id={0}" />
</appSettings>
</configuration>

View file

@ -182,6 +182,32 @@ namespace TechBot.Console
}
}
private static string WineBugUrl
{
get
{
string optionName = "WineBugUrl";
string s = ConfigurationSettings.AppSettings[optionName];
VerifyRequiredOption(optionName,
s);
return s;
}
}
private static string SambaBugUrl
{
get
{
string optionName = "SambaBugUrl";
string s = ConfigurationSettings.AppSettings[optionName];
VerifyRequiredOption(optionName,
s);
return s;
}
}
private static void RunIrcService()
{
IrcService ircService = new IrcService(IRCServerHostName,
@ -196,7 +222,9 @@ namespace TechBot.Console
HresultXml,
WmXml,
SvnCommand,
BugUrl);
BugUrl,
WineBugUrl,
SambaBugUrl);
ircService.Run();
}
@ -217,7 +245,9 @@ namespace TechBot.Console
HresultXml,
WmXml,
SvnCommand,
BugUrl);
BugUrl,
WineBugUrl,
SambaBugUrl);
service.Run();
while (true)
{