Fix checking for chunk ammount exceeding

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-08-16 02:24:59 +03:00
parent 223a817953
commit 1e7e683ac2
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -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)