From 63a4ca9114e5179e4deb84cc6268428abe09f955 Mon Sep 17 00:00:00 2001 From: Morfent Date: Thu, 2 Apr 2015 11:32:33 -0300 Subject: [PATCH] Add Infinity and 0 aliases for /tour autodq off --- tournaments/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tournaments/index.js b/tournaments/index.js index 291a316600..ad8cbbb227 100644 --- a/tournaments/index.js +++ b/tournaments/index.js @@ -794,6 +794,7 @@ var commands = { if (params.length < 1) { return this.sendReply("Usage: " + cmd + " "); } + if (params[0].toLowerCase() === 'infinity' || params[0] === '0') params[0] = 'off'; var timeout = params[0].toLowerCase() === 'off' ? Infinity : params[0]; if (tournament.setAutoDisqualifyTimeout(timeout * 60 * 1000, this)) { this.privateModCommand("(The tournament auto disqualify timeout was set to " + params[0] + " by " + user.name + ")");