exit_client
Posted: Sun Feb 17, 2008 3:21 am
Alright, I've searched the forum and can't find much on exit_client usage except that it is tricky/confusing.
Firstly, I'm trying to kill a user if a message contains a certain string. So, I'm trying to use exit_client from within a 'char' function that's called by the usermsg or chanmsg hooktypes. The problem is, it crashes the ircd when the exit_client happens.
It will remove the user, but then crashes right after.
So, I went and just made it mark the user I want to kill as "dead", then created a "rmdead" command. This command is to check the users online, if they are marked as "dead", remove them. Everything works great, except the exit_client again.
I've tried sptr, cptr, NULL, for within the exit_client call... nothing seems to work without crashing the ircd.
Is there something else I need to do before exit_client is called or what may be the issue?
Firstly, I'm trying to kill a user if a message contains a certain string. So, I'm trying to use exit_client from within a 'char' function that's called by the usermsg or chanmsg hooktypes. The problem is, it crashes the ircd when the exit_client happens.
It will remove the user, but then crashes right after.
So, I went and just made it mark the user I want to kill as "dead", then created a "rmdead" command. This command is to check the users online, if they are marked as "dead", remove them. Everything works great, except the exit_client again.
I've tried sptr, cptr, NULL, for within the exit_client call... nothing seems to work without crashing the ircd.
Is there something else I need to do before exit_client is called or what may be the issue?