Another issue is that a nick name with '+' (very unusual) on it will have the '+' translated to ' ' (space) when the macro '%%user%%' is used.
To avoid this this will help in class/chat. php parse_message():
$this->message = preg_replace
, char_to_html( $_SESSION['hcl_'.$chatid]['guest'] )