Schumix.Irc.IrcBase.NewServer C# (CSharp) Method

NewServer() public method

public NewServer ( string ServerName, int ServerId, string Host, int Port ) : void
ServerName string
ServerId int
Host string
Port int
return void
        public void NewServer(string ServerName, int ServerId, string Host, int Port)
        {
            lock(Lock)
            {
                var nw = new Network(ServerName.ToLower(), ServerId, Host, Port);

                if(IRCConfig.List[ServerName].Ssl)
                    nw.SetConnectionType(ConnectionType.Ssl);

                _networks.Add(ServerName, nw);
                _networks[ServerName.ToLower()].InitializeIgnoreCommand();
            }
        }