internal KickEvent(User sender, Channel channel, User target, string message) { _sender = sender; _channel = channel; _target = target; _message = message; }
internal TopicEvent(User sender, Channel channel, string topic) { _sender = sender; _channel = channel; _topic = topic; }
internal JoinEvent(User sender, Channel channel) { _sender = sender; _channel = channel; }
internal PartEvent(User sender, Channel channel, string message) { _sender = sender; _channel = channel; _message = message; }
internal ChannelMessageEvent(User sender, Channel target, MessageType mtype, string message) : base(sender, target, mtype, message) { }
internal ChannelModeEvent(User sender, Channel channel, string mode) : base(channel, mode) { _sender = sender; _channel = channel; }
/// <summary> /// Gets all channels known by IRCQueue. /// </summary> /// <returns>An array containing all known channels.</returns> public Channel[] GetChannels() { IRC.ChannelData[] cl; lock (Cs.Irc.Entities) cl = Cs.Irc.Entities.GetChannels(); Channel[] ncl = new Channel[cl.Length]; for (int i = 0; i < cl.Length; i++) { ncl[i] = (Channel)cl[i]; } return ncl; }