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; }
private void LocalUserOnJoinedChannel(object sender, IrcChannelEventArgs e) { JoinedChannel?.Invoke(e.Channel); }