Kaydet (Commit) d5af7bd4 authored tarafından Jack Jansen's avatar Jack Jansen

Truncate messages if they are longer than 255 characters. Note that this is

not really a good solution for default input strings...
üst a5a018fb
......@@ -28,6 +28,8 @@ def cr2lf(text):
def lf2cr(text):
if '\n' in text:
text = string.join(string.split(text, '\n'), '\r')
if len(text) > 253:
text = text[:253] + '\311'
return text
def Message(msg, id=256):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment