Moving netlistener onto a unique config block
This commit is contained in:
@@ -26,7 +26,7 @@ namespace AniNIX.TheRaven {
|
||||
public List<String> channels; //This is the list of channels to join
|
||||
public List<String> whitelist; //This is the list of admin users.
|
||||
public List<String> blacklist; // This is the list of blocked people.
|
||||
public String helpText = "Available commands are r.d <dice test>, r.heartbeat, r.magic8, r.math <math problem>, r.msg <memo for admin>, r.raven, r.searches, r.tinyurl <url>, r.wikidiff \"one\" \"other\", and r.uptime";
|
||||
public String helpText = "Available commands are r.d <dice test>, r.magic8, r.math <math problem>, r.msg <memo for admin>, r.raven, r.searches, r.tinyurl <url>, r.wikidiff \"one\" \"other\", and r.uptime";
|
||||
// This is the text to send when people ask for help -- this is configurable to allow for skinning
|
||||
public List<String> searches; //These are the searches
|
||||
public String searchesIndex; //This is the helptext for the searches
|
||||
@@ -75,11 +75,12 @@ namespace AniNIX.TheRaven {
|
||||
ReportMessage.Log(Verbosity.Verbose,"Reading login info");
|
||||
try {
|
||||
Dictionary<String,String> loginDefaults = conf.ReadSection("Login");
|
||||
Dictionary<String,String> apiDefaults = conf.ReadSection("API");
|
||||
this.Host = loginDefaults["host"];
|
||||
this.Port = Int32.Parse(loginDefaults["port"]);
|
||||
this.Nick = loginDefaults["username"];
|
||||
this._nickServPass = loginDefaults["password"];
|
||||
this._netListener = new RavenNetListener(loginDefaults["password"]);
|
||||
this._netListener = new RavenNetListener(apiDefaults["password"],Int32.Parse(apiDefaults["port"]));
|
||||
|
||||
channels=new List<String>();
|
||||
foreach (String channel in conf.ReadSectionLines("Rooms")) {
|
||||
@@ -268,7 +269,7 @@ namespace AniNIX.TheRaven {
|
||||
/// Read from the connection, and for each message act appropriately.
|
||||
/// </summary>
|
||||
public void LoopOnTraffic() {
|
||||
ReportMessage.Log(Verbosity.Verbose,"Looping on trafffic now! We're useful!");
|
||||
ReportMessage.Log(Verbosity.Verbose,"Looping on traffic now! We're useful!");
|
||||
// Start a network listener to allow relaying traffic via ncat into IRCd.
|
||||
this._netListener.NetListener(this._connection);
|
||||
// Loop on main connect to ircd
|
||||
|
||||
Reference in New Issue
Block a user