attempt to set more sensible message length limits

This commit is contained in:
jan6 2022-09-26 15:09:44 -07:00
parent 19e223ef99
commit 4f8da680d6
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ class Util:
if t == None:
t = self.target
msg = str(msg).partition("\n")[0]
if len(msg) >= 900:
msg = msg[:900]
if len(msg) >= 460:
msg = msg[:460]
self.mesg("message too long!")
return t, msg