protected override void OnChannelModeChanged(IrcChannel channel, IrcUser source, string newModes, IEnumerable<string> newModeParameters) { // Twitch doesn't actually send JOIN messages. This means we need to add users // to the channel when changing their mode if we haven't already. foreach (string username in newModeParameters) { IrcUser user = GetUserFromNickName(username); if (channel.GetChannelUser(user) == null) channel.HandleUserJoined(new IrcChannelUser(user)); } }
protected override void OnChannelModeChanged(IrcChannel channel, IrcUser source, string newModes, IEnumerable <string> newModeParameters) { // Twitch doesn't actually send JOIN messages. This means we need to add users // to the channel when changing their mode if we haven't already. foreach (string username in newModeParameters) { IrcUser user = GetUserFromNickName(username); if (channel.GetChannelUser(user) == null) { channel.HandleUserJoined(new IrcChannelUser(user)); } } }