aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-12 22:26:04 +0100
committerMax Kellermann <max@duempel.org>2014-12-12 22:26:04 +0100
commit49968541fd1229a92e5eadbd037b051d3b6a87da (patch)
treeb9972ecf8f26b1d6f787433b9cb50cc3bc2d5399 /src/command
parentcc143105b884bfcaa188c6e9f93babec5958ea87 (diff)
downloadmpd-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.cxx4
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");