From c2a2d9c97b7e6f0a78dd5b246edd6e18a2f4fe65 Mon Sep 17 00:00:00 2001 From: Giuseppe Guerra Date: Thu, 3 Aug 2017 23:56:04 +0200 Subject: [PATCH] Change minimum !mp size value from 1 to 2 --- constants/fokabotCommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/constants/fokabotCommands.py b/constants/fokabotCommands.py index 65e97e0..eee8e38 100644 --- a/constants/fokabotCommands.py +++ b/constants/fokabotCommands.py @@ -801,8 +801,8 @@ def multiplayer(fro, chan, message): return "This match has been unlocked" def mpSize(): - if len(message) < 2 or not message[1].isdigit() or int(message[1]) < 1 or int(message[1]) > 16: - raise exceptions.invalidArgumentsException("Wrong syntax: !mp size ") + if len(message) < 2 or not message[1].isdigit() or int(message[1]) < 2 or int(message[1]) > 16: + raise exceptions.invalidArgumentsException("Wrong syntax: !mp size ") matchSize = int(message[1]) _match = glob.matches.matches[getMatchIDFromChannel(chan)] for i in range(0, matchSize):