public Network(string server, Instance Instance, WmIrcProtocol protocol) : base(server, (libirc.Protocols.ProtocolIrc)protocol) { this.instance = Instance; this.Config.TrafficInterval = Configuration.IRC.Interval; this.Config.Nick = Instance.Nick; if (Configuration.IRC.UsingBouncer) this.IsLoaded = true; }
public Network(string server, Instance Instance, WmIrcProtocol protocol) : base(server, (libirc.Protocols.ProtocolIrc)protocol) { this.instance = Instance; this.Config.TrafficInterval = Configuration.IRC.Interval; this.Config.Nick = Instance.Nick; if (Configuration.IRC.UsingBouncer) { this.IsLoaded = true; } }
/// <summary> /// Creates a new bot instance but not connect it to IRC /// </summary> /// <param name="name">Name</param> /// <param name="port">Port</param> public Instance(string name, int port = 0) { Nick = name; Port = port; this.Protocol = new WmIrcProtocol(Configuration.IRC.NetworkHost, Hostname, Port); this.Network = new Network(Configuration.IRC.NetworkHost, this, this.Protocol); this.Network.Nickname = Nick; this.Network.UserName = Configuration.IRC.Username; this.Network.Ident = Configuration.IRC.Ident; this.Protocol.IRCNetwork = this.Network; }
public Network(string server, Instance Instance, WmIrcProtocol protocol) : base(server, (libirc.Protocols.ProtocolIrc)protocol) { this.instance = Instance; }