Skip to content

Commit 8c63532

Browse files
committed
Merge branch 'stringnormalization_clear' of github.com:jcorporation/MPD
2 parents c573c28 + 6ea088e commit 8c63532

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/command/ClientCommands.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ handle_string_normalization(Client &client, Request request, Response &r)
232232

233233
string_normalizations_print_all(r);
234234
return CommandResult::OK;
235+
} else if (StringIsEqual(cmd, "clear")) {
236+
if (!request.empty()) {
237+
r.Error(ACK_ERROR_ARG, "Too many arguments");
238+
return CommandResult::ERROR;
239+
}
240+
241+
client.ClearStringNormalizations();
242+
return CommandResult::OK;
235243
} else {
236244
r.Error(ACK_ERROR_ARG, "Unknown sub command");
237245
return CommandResult::ERROR;

0 commit comments

Comments
 (0)