Pass() public method

public Pass ( SecureString password ) : void
password SecureString
return void
Ejemplo n.º 1
0
        public void Connect()
        {
            using (var irc = new TcpClient(Server, Port))
            {
                irc.SendBufferSize = Client.BufferSize;
                irc.ReceiveBufferSize = Client.BufferSize;

                using (var client = new Client(irc.GetStream()))
                {
                    client.Pass(Password);
                    client.User(Environment.UserName, InitUsermode, RealName);
                    client.Nick(Nick);
                    client.Mode(Nick, Usermode);

                    Thread.Sleep(SendDelay * 3);

                    client.Join(Channel, string.Empty);

                    client.MessageReceived += Trigger;

                    PasteSetup(client);
                    FunBotsSetup(client);

                    client.Listen();
                }

                irc.Client.Close(SendDelay);
            }
        }
Ejemplo n.º 2
0
        void Connect()
        {
            irc = new TcpClient(Server, Port);
            irc.SendBufferSize = Client.BufferSize;
            irc.ReceiveBufferSize = Client.BufferSize;

            client = new Client(irc.GetStream());
            client.Pass(Password);
            client.User(Username, InitUsermode, RealName);
            client.Nick(Username);
            client.Mode(Username, Usermode);

            Thread.Sleep(SendDelay * 3);

            client.Join(Channel, string.Empty);

            PasteSetup();
            FunBotsSetup();
        }