public void IrcRemoveHandler(ReplyCode code) { string scode = code.ToInt32().ToIrcOpcode(); if (IrcMethodMap.ContainsKey(scode)) { IrcMethodMap.Remove(scode); } }
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)); } }
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); } } }
public IrcCommandAttribute(ReplyCode command) { Command = command.ToInt32().ToIrcOpcode(); }
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); } }
public void IrcRemoveHandler(ReplyCode code) { string scode = code.ToInt32().ToIrcOpcode(); if(IrcMethodMap.ContainsKey(scode)) IrcMethodMap.Remove(scode); }
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)); }