/// <summary> /// /// </summary> /// <param name="channel"></param> /// <returns></returns> public bool ValidChannel(string channel) { return(SupportedChannelTypes.Any(t => t.Value.Prefix == channel[0]) && (!channel.Any(c => c == ' ' || c == ',' || c == '\x7' || c == ':'))); }
private void SetupChannelTypes() { ChannelType chan = new NormalChannel(); SupportedChannelTypes.TryAdd(chan.Prefix, chan); }