sticker/Match: add inequality operators

This commit is contained in:
Max Kellermann
2014-12-12 22:26:04 +01:00
parent cc143105b8
commit 49968541fd
4 changed files with 39 additions and 0 deletions

View File

@@ -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");