Exemplo n.º 1
0
        protected virtual async void OnPreRegister()
        {
            if (!Connected)
            {
                return;
            }

            if (!string.IsNullOrEmpty(Password))
            {
                await Send("PASS {0}", Password);
            }

            SetNick(Nick);
            await Send("USER {0} 0 * {1}", Ident, RealName.Contains(" ")?string.Concat(":", RealName) : RealName);

            /* This causes a registration timeout.
             * if (EnableV3)
             * {
             *  await Task.Delay(500);
             *  await Send("CAP LS"); // Request capabilities from the IRC server.
             * }*/
        }