get username in PRECONNECT hook (not nickname)
Posted: Mon Feb 22, 2016 9:50 am
Hi All,
I would like to get the username instead of nickname in the _preconnect hook.
Hook callback get a aClient *sptr in parameter.
But sptr->username is set to "". sptr->name is feed but with nickname.
I think, at this moment (preconnect) unrealIrcd have already received from client it, so how can i get it ?
Thanks for your help
I would like to get the username instead of nickname in the _preconnect hook.
Hook callback get a aClient *sptr in parameter.
But sptr->username is set to "". sptr->name is feed but with nickname.
I think, at this moment (preconnect) unrealIrcd have already received from client it, so how can i get it ?
Thanks for your help