registerOutputEvent(GameConnection, serverCmdMessageSent, "string " @ $Pref::Server::MaxChatLen @ " 50", 1);
Ofcourse, the command would do serverCmdMessageSent(%string, %client);, but I can't workaround that without some skillful parenting on a command like this:
function messageSent(%string, %client) {
serverCmdMessageSent(%client, %string);
}
But that sorta defeat the purpose.