示例#1
0
        private void JoinChannel(string command)
        {
            // Extracts first word starting with '#'
            string channel = command.Substring(command.IndexOf('#'), command.Substring(command.IndexOf('#')).IndexOf(' '));

            users.Sort();

            JoinedChannel?.Invoke(this, new NewChannelEventArgs(channel, users));

            users = null;
        }
示例#2
0
 private void LocalUserOnJoinedChannel(object sender, IrcChannelEventArgs e)
 {
     JoinedChannel?.Invoke(e.Channel);
 }