Support multiple channels

svn path=/trunk/; revision=13604
This commit is contained in:
Casper Hornstrup 2005-02-16 21:07:55 +00:00
parent 6536947239
commit 70350430a5
15 changed files with 251 additions and 109 deletions

View file

@ -3,7 +3,7 @@
<appSettings>
<add key="IRCServerHostName" value="irc.eu.freenode.net" />
<add key="IRCServerHostPort" value="6667" />
<add key="IRCChannelName" value="channel" />
<add key="IRCChannelNames" value="channel1;channel2" />
<add key="IRCBotName" value="MyBot" />
<add key="ChmPath" value="C:\IRC\TechBot\CHM" />
<add key="MainChm" value="kmarch.chm" />

View file

@ -9,7 +9,7 @@ namespace TechBot
{
private string IRCServerHostName;
private int IRCServerHostPort;
private string IRCChannelName;
private string IRCChannelNames;
private string IRCBotName;
private string ChmPath;
private string MainChm;
@ -28,7 +28,7 @@ namespace TechBot
{
IRCServerHostName = ConfigurationSettings.AppSettings["IRCServerHostName"];
IRCServerHostPort = Int32.Parse(ConfigurationSettings.AppSettings["IRCServerHostPort"]);
IRCChannelName = ConfigurationSettings.AppSettings["IRCChannelName"];
IRCChannelNames = ConfigurationSettings.AppSettings["IRCChannelNames"];
IRCBotName = ConfigurationSettings.AppSettings["IRCBotName"];
ChmPath = ConfigurationSettings.AppSettings["ChmPath"];
MainChm = ConfigurationSettings.AppSettings["MainChm"];
@ -45,7 +45,7 @@ namespace TechBot
IrcService ircService = new IrcService(IRCServerHostName,
IRCServerHostPort,
IRCChannelName,
IRCChannelNames,
IRCBotName,
ChmPath,
MainChm,