private static bool HandlePrivilegedUserCommand(Room room, Message command) { var cmd = command.Content.Trim().ToUpperInvariant(); switch (cmd) { case "DEL": { room.DeleteMessage(command.ParentID); return true; } default: { return false; } } }
private static bool HandlePrivilegedUserCommand(Room room, Message command) { var cmd = command.Content.Trim().ToUpperInvariant(); switch (cmd) { case "DEL": { room.DeleteMessage(command.ParentID); return true; } default: { return false; } } }