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
get username in PRECONNECT hook (not nickname)
Moderators: Gottem, Supporters
Re: get username in PRECONNECT hook (not nickname)
One information more : the modules i develop is for unrealdircd 4.0.1
Re: get username in PRECONNECT hook (not nickname)
Hi,
I assume the hook you mentioned is HOOKTYPE_PRE_LOCAL_CONNECT.
I looked into the source code and indeed the ircd already has client's username at this point.
However I'm not too sure why sptr->username is set to ""
I assume the hook you mentioned is HOOKTYPE_PRE_LOCAL_CONNECT.
I looked into the source code and indeed the ircd already has client's username at this point.
However I'm not too sure why sptr->username is set to ""
Re: get username in PRECONNECT hook (not nickname)
Hi dboyz,
And thanks for your answer.
Yes i confirm, I talk about HOOKTYPE_PRE_LOCAL_CONNECT hook.
Do you know if there somewhere a description of the structure pointed by sptr (other than source)?
And thanks for your answer.
Yes i confirm, I talk about HOOKTYPE_PRE_LOCAL_CONNECT hook.
Do you know if there somewhere a description of the structure pointed by sptr (other than source)?
Re: get username in PRECONNECT hook (not nickname)
Hello,
Unfortunately no but you can try your luck digging the documentations though.
unrealircd.org/docs
Unfortunately no but you can try your luck digging the documentations though.
unrealircd.org/docs
Re: get username in PRECONNECT hook (not nickname)
Ok I will do it.
Thanks
Thanks