mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Merge pull request #1711 from Morfent/tourautodq
Add Infinity and 0 aliases for /tour autodq off
This commit is contained in:
commit
6d68c8dd94
|
|
@ -794,6 +794,7 @@ var commands = {
|
|||
if (params.length < 1) {
|
||||
return this.sendReply("Usage: " + cmd + " <minutes|off>");
|
||||
}
|
||||
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 + ")");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user