Cmdoverride question

These are old archives. They are kept for historic purposes only.
Post Reply
Capitaine
Posts: 27
Joined: Mon Apr 26, 2004 6:09 pm

Cmdoverride question

Post by Capitaine » Mon May 05, 2008 12:05 pm

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 ?

srcmaster
Posts: 4
Joined: Fri Nov 02, 2007 1:44 pm

Re: Cmdoverride question

Post by srcmaster » Mon May 05, 2008 1:06 pm

yep, a permanent module problem. You need to use "HOOKTYPE_REHASH_COMPLETE", in order to prevent this problem. Just reoverride your commands in it.

Capitaine
Posts: 27
Joined: Mon Apr 26, 2004 6:09 pm

Re: Cmdoverride question

Post by Capitaine » Mon May 05, 2008 5:28 pm

Ok thanks i'll check that

Post Reply