/// <summary> /// Executes the SelfGroupRemoveMessage message. /// </summary> /// <param name="message">The message.</param> private void Execute(SelfGroupRemoveMessage message) { var clientEntry = Repository.Client.GetClientInfo(message.SenderClientId); Repository.Client.RemoveClientServerGroups(clientEntry.DatabaseId, message.ServerGroupIds); foreach (uint serverGroup in message.ServerGroupIds) { Log(Repository.Settings.Control.SelfGroup, string.Format("Client '{1}'(id:{2}) used {0} with group '{3}'.", Repository.Settings.Control.SelfGroup.UndoCommand, clientEntry.Nickname, clientEntry.DatabaseId, serverGroup)); } }