/// <summary> /// Handles a request of toggling the moderate mode of the channel /// </summary> /// <param name="client">the client the incoming packet belongs to</param> /// <param name="packet">the full packet</param> public static void HandleModerateRequest(IRealmClient client, RealmPacketIn packet) { string channelName = packet.ReadCString(); ChannelMember member; ChatChannel chatChannel = ChatChannel.EnsurePresence(client.ActiveCharacter, channelName, out member); if (chatChannel == null) { return; } chatChannel.ToggleModerated(member); }