To add it to the autoresponse to new tickets
Add this code on about line 955 of include/class.ticket.php right after
$body = str_replace("%signature",$dept?$dept->getSignature():'',$body);
$seperate_names = explode(" ",$ticket->getName(),2);
$subj = str_replace("%firstname", $seperate_names, $subj);
$body = str_replace("%firstname", $seperate_names, $body);
$subj = str_replace("%lastname", $seperate_names, $subj);
$body = str_replace("%lastname", $seperate_names, $body);
To add it to the reply to existing tickets
Add code on about line 600 of include/class ticket.php right after
$body = str_replace("%message",$response,$body);
$seperate_names = explode(" ",$this->getName(),2);
$subj = str_replace("%firstname", $seperate_names, $subj);
$body = str_replace("%firstname", $seperate_names, $body);
$subj = str_replace("%lastname", $seperate_names, $subj);
$body = str_replace("%lastname", $seperate_names, $body);