🐛 Pop input on correctly parsed PircBotX user

This commit is contained in:
Alexander Söderberg 2020-10-22 11:59:43 +02:00 committed by Alexander Söderberg
parent 7c340f7a60
commit 63068ad75d
2 changed files with 2 additions and 1 deletions

View file

@ -142,6 +142,7 @@ public final class UserArgument<C> extends CommandArgument<C, User> {
final User user;
try {
user = pircBotX.getUserChannelDao().getUser(input);
inputQueue.remove();
} catch (final DaoException exception) {
return ArgumentParseResult.failure(
new UserParseException(