Page 1 of 1

Cmdoverride question

Posted: Mon May 05, 2008 12:05 pm
by Capitaine
I've been coding a module which add restriction on joins,
and I use CmdoverrideAdd to override /JOIN

Everything works perfectly when the ircd has been started and loaded the module.
But as soon as I rehash, the overrided join is not called anymore, yet the module is loaded and I see no error.

So I wondered if it's a bug or I miss something ?

Re: Cmdoverride question

Posted: Mon May 05, 2008 1:06 pm
by srcmaster
yep, a permanent module problem. You need to use "HOOKTYPE_REHASH_COMPLETE", in order to prevent this problem. Just reoverride your commands in it.

Re: Cmdoverride question

Posted: Mon May 05, 2008 5:28 pm
by Capitaine
Ok thanks i'll check that