private int port;\r
private string channelnames;\r
private string botname;\r
+ private string password;\r
private string chmPath;\r
private string mainChm;\r
private string ntstatusXml;\r
int port,\r
string channelnames,\r
string botname,\r
+ string password,\r
string chmPath,\r
string mainChm,\r
string ntstatusXml,\r
this.port = port;\r
this.channelnames = channelnames;\r
this.botname = botname;\r
+ if (password == null || password.Trim() == "")\r
+ this.password = null;\r
+ else\r
+ this.password = password;\r
this.chmPath = chmPath;\r
this.mainChm = mainChm;\r
this.ntstatusXml = ntstatusXml;\r
hostname, port));\r
client.Connect(hostname, port);\r
System.Console.WriteLine("Connected...");\r
- client.Register(botname, null);\r
+ client.Register(botname, password, null);\r
System.Console.WriteLine(String.Format("Registered as {0}...", botname));\r
JoinChannels();\r
\r