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 »

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 »

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 »

Ok thanks i'll check that
Post Reply