diff options
Diffstat (limited to '')
-rw-r--r-- | src/command/OtherCommands.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx index e5696e696..4fc7e56f6 100644 --- a/src/command/OtherCommands.cxx +++ b/src/command/OtherCommands.cxx @@ -309,7 +309,7 @@ CommandResult handle_setvol(Client &client, Request args) { unsigned level; - if (!check_unsigned(client, &level, args.front())) + if (!ParseCommandArg(client, level, args.front())) return CommandResult::ERROR; if (level > 100) { @@ -330,7 +330,7 @@ CommandResult handle_volume(Client &client, Request args) { int relative; - if (!check_int(client, &relative, args.front())) + if (!ParseCommandArg(client, relative, args.front())) return CommandResult::ERROR; if (relative < -100 || relative > 100) { |