diff options
author | Max Kellermann <max@duempel.org> | 2014-12-12 22:26:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-12 22:26:04 +0100 |
commit | 49968541fd1229a92e5eadbd037b051d3b6a87da (patch) | |
tree | b9972ecf8f26b1d6f787433b9cb50cc3bc2d5399 /src/command | |
parent | cc143105b884bfcaa188c6e9f93babec5958ea87 (diff) | |
download | mpd-49968541fd1229a92e5eadbd037b051d3b6a87da.tar.gz mpd-49968541fd1229a92e5eadbd037b051d3b6a87da.tar.xz mpd-49968541fd1229a92e5eadbd037b051d3b6a87da.zip |
sticker/Match: add inequality operators
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/StickerCommands.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/StickerCommands.cxx b/src/command/StickerCommands.cxx index 07bed032e..fce53e162 100644 --- a/src/command/StickerCommands.cxx +++ b/src/command/StickerCommands.cxx @@ -155,6 +155,10 @@ handle_sticker_song(Client &client, ConstBuffer<const char *> args) if (strcmp(op_s, "=") == 0) op = StickerOperator::EQUALS; + else if (strcmp(op_s, "<") == 0) + op = StickerOperator::LESS_THAN; + else if (strcmp(op_s, ">") == 0) + op = StickerOperator::GREATER_THAN; else { command_error(client, ACK_ERROR_ARG, "bad operator"); |