예제 #1
0
        public void LeaveChannel(Stream channel)
        {
            _writer.WriteLine($"PART {channel.ChannelName}");
            byte temp;

            _joinedStreams.TryRemove(channel, out temp);
        }
예제 #2
0
 public void JoinChannel(Stream channel)
 {
     _writer.WriteLine($"JOIN #{channel.ChannelName.ToLower()}");
     _joinedStreams.TryAdd(channel, new byte());
 }