Fix checking for chunk ammount exceeding
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
223a817953
commit
1e7e683ac2
|
@ -127,7 +127,7 @@ class BotCommandsParser:
|
|||
for chunk_idx, chunk in enumerate(
|
||||
message[i : i + 2000] for i in range(0, len(message), 2000)
|
||||
):
|
||||
if chunk_idx >= CONFIG["chunk-limit"]:
|
||||
if chunk_idx > CONFIG["chunk-limit"]:
|
||||
log("Too many chunks being sent, stopping")
|
||||
await self.bot.cchannel.send(
|
||||
m("Message chunk count exceeded, message too long!", message)
|
||||
|
|
Loading…
Reference in a new issue