Add maxlength to chatline (Fix #156)