Set default time limit also for lookups

Fixes #309
This commit is contained in:
Brokkonaut
2018-08-02 03:43:18 +02:00
parent 33d97ed971
commit d8e53173e0

View File

@@ -337,7 +337,11 @@ public class CommandsHandler implements CommandExecutor {
if (command.equals("lookup")) { if (command.equals("lookup")) {
argsList.remove(0); argsList.remove(0);
} }
new CommandLookup(sender, new QueryParams(logblock, sender, argsList), true); final QueryParams params = new QueryParams(logblock);
params.since = defaultTime;
params.bct = BlockChangeType.ALL;
params.parseArgs(sender, argsList);
new CommandLookup(sender, params, true);
} else { } else {
sender.sendMessage(ChatColor.RED + "You aren't allowed to do this"); sender.sendMessage(ChatColor.RED + "You aren't allowed to do this");
} }