function serverCmdid(%client,%id,%keytoreplace)
{
if(!%keytoreplace){
%id = strReplace(%name, "_", " ");//_s turned into spaces
}
else{
%id = strReplace(%name, %keytoreplace, " ");//[key]s turned into spaces
}
%client.name = %id;
}
untested. Probably wont work, but best thing i can think of without overwriting alot of stuff.