Exemplo n.º 1
0
        private void cmdMODE(string[] args)
        {
            _Parsed = true;
            string[] source = args[0].Split(new char[] { '!' });
            string   nick   = source[0].Replace(":", "");
            string   realname;
            string   hostname;

            if (args[0].IndexOf("!") > -1)
            {
                realname = source[1].Split(arobas)[0];
                hostname = source[1].Split(arobas)[1];
            }
            else
            {
                hostname = null;
                realname = null;
            }
            string        channel = args[2].Replace(":", "");
            string        mode    = UtilityService.JoinString(args, 3, args.Length);
            UserInfo      user    = new UserInfo(nick, realname, hostname, false);
            ModeEventArgs e       = new ModeEventArgs(user, mode, channel);

            if (oModeEvent != null)
            {
                oModeEvent(this, e);
            }
        }
Exemplo n.º 2
0
        private void cmd324(string[] args)
        {
            _Parsed = true;
            string        channel = args[3];
            string        mode    = UtilityService.JoinString(args, 4, args.Length);
            ModeEventArgs e       = new ModeEventArgs(null, mode, channel);

            oModeEvent(this, e);
        }
Exemplo n.º 3
0
        void iparse_oModeEvent(object sender, ModeEventArgs e)
        {
            if (e.User != null && e.User.Nick != tbNick.Text)  //this pertains to the client nick only
            {
                return;
            }
            ChanMessageList cml;

            if (ChannelList.TryGetValue(e.Channel, out cml))
            {
                cml.Modes = e.Mode;
            }
            if (selectedChannel == e.Channel)
            {
                lblModes.Text = e.Mode;
            }
        }
Exemplo n.º 4
0
        private void cmdMODE(string[] args)
        {
            _Parsed = true;
            string[] source = args[0].Split(new char[] { '!' });
            string nick = source[0].Replace(":", "");
            string realname;
            string hostname;
            if (args[0].IndexOf("!") > -1)
            {
                realname = source[1].Split(arobas)[0];
                hostname = source[1].Split(arobas)[1];
            }
            else
            {
                hostname = null;
                realname = null;
            }
            string channel = args[2].Replace(":", "");
            string mode = UtilityService.JoinString(args, 3, args.Length);
            UserInfo user = new UserInfo(nick, realname, hostname, false);
            ModeEventArgs e = new ModeEventArgs(user, mode, channel);
            if (oModeEvent != null)
                oModeEvent(this, e);

        }
Exemplo n.º 5
0
 private void cmd324(string[] args)
 {
     _Parsed = true;
     string channel = args[3];
     string mode = UtilityService.JoinString(args, 4, args.Length);
     ModeEventArgs e = new ModeEventArgs(null, mode, channel);
     oModeEvent(this, e);
 }
Exemplo n.º 6
0
        void iparse_oModeEvent(object sender, ModeEventArgs e)
        {
            if (e.User != null && e.User.Nick != tbNick.Text)  //this pertains to the client nick only
                return;
            ChanMessageList cml;
            if (ChannelList.TryGetValue(e.Channel, out cml))
            {

                cml.Modes = e.Mode;
            }
            if (selectedChannel == e.Channel)
                lblModes.Text = e.Mode;
           
        }