mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:53:02 +00:00
Support multiple channels
svn path=/trunk/; revision=13604
This commit is contained in:
parent
6536947239
commit
70350430a5
15 changed files with 251 additions and 109 deletions
|
@ -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" />
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue