I believe that only gets sent to the Control-NPC, you'll have to use onPlayerLogin instead.
That's also pretty backwards, since you are supposed to set clientr flags on the server-side.
PHP Code:
function onPlayerLogin(plyr) {
with (plyr) {
clientr.guild = player.guild;
}
}
Should suffice.