Exemple #1
0
        public void IrcRemoveHandler(ReplyCode code)
        {
            string scode = code.ToInt32().ToIrcOpcode();

            if (IrcMethodMap.ContainsKey(scode))
            {
                IrcMethodMap.Remove(scode);
            }
        }
Exemple #2
0
        public void IrcRegisterHandler(ReplyCode code, IRCDelegate method)
        {
            string scode = code.ToInt32().ToIrcOpcode();

            if (IrcMethodMap.ContainsKey(scode))
            {
                IrcMethodMap[scode].Method += method;
            }
            else
            {
                IrcMethodMap.Add(scode, new IrcMethod(method));
            }
        }
Exemple #3
0
        public void IrcRemoveHandler(ReplyCode code, IRCDelegate method)
        {
            string scode = code.ToInt32().ToIrcOpcode();

            if (IrcMethodMap.ContainsKey(scode))
            {
                IrcMethodMap[scode].Method -= method;

                if (IrcMethodMap[scode].Method.IsNull())
                {
                    IrcMethodMap.Remove(scode);
                }
            }
        }
Exemple #4
0
 public IrcCommandAttribute(ReplyCode command)
 {
     Command = command.ToInt32().ToIrcOpcode();
 }
 public IrcCommandAttribute(ReplyCode command)
 {
     Command = command.ToInt32().ToIrcOpcode();
 }
Exemple #6
0
        public void IrcRemoveHandler(ReplyCode code, IRCDelegate method)
        {
            string scode = code.ToInt32().ToIrcOpcode();

            if(IrcMethodMap.ContainsKey(scode))
            {
                IrcMethodMap[scode].Method -= method;

                if(IrcMethodMap[scode].Method.IsNull())
                    IrcMethodMap.Remove(scode);
            }
        }
Exemple #7
0
        public void IrcRemoveHandler(ReplyCode code)
        {
            string scode = code.ToInt32().ToIrcOpcode();

            if(IrcMethodMap.ContainsKey(scode))
                IrcMethodMap.Remove(scode);
        }
Exemple #8
0
        public void IrcRegisterHandler(ReplyCode code, IRCDelegate method)
        {
            string scode = code.ToInt32().ToIrcOpcode();

            if(IrcMethodMap.ContainsKey(scode))
                IrcMethodMap[scode].Method += method;
            else
                IrcMethodMap.Add(scode, new IrcMethod(method));
        }