Fixed overflow
This commit is contained in:
parent
4cee4c7109
commit
8c2d66fca1
@ -26,7 +26,7 @@ def fixformatting(message):
|
|||||||
fixedmessage = [""]
|
fixedmessage = [""]
|
||||||
counter = 0
|
counter = 0
|
||||||
for word in message.split(" "):
|
for word in message.split(" "):
|
||||||
if counter + len(word) >= 25:
|
if counter + len(word) >= 18:
|
||||||
counter = 0
|
counter = 0
|
||||||
fixedmessage.append("\n")
|
fixedmessage.append("\n")
|
||||||
fixedmessage.append("{} ".format(word))
|
fixedmessage.append("{} ".format(word))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user