예제 #1
0
 /// <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 == ':')));
 }
예제 #2
0
        private void SetupChannelTypes()
        {
            ChannelType chan = new NormalChannel();

            SupportedChannelTypes.TryAdd(chan.Prefix, chan);
        }