module trouble oO
Posted: Mon Apr 05, 2004 8:27 pm
hey all,
not long ago I started to code a litle unreal module to link my community website (webchat) to an irc server. I chose unreal because the plugin system is great.
everything worked fine untill I tried to add configuration file support to my module. I added hooktypes CONFIGRUN, CONFIGTEST and REHASH to my module but RUN, and TEST are not called when unreal starts up. I am using a CVS snapshot which is just a few days old. both hooks are successfully called when I simply /rehash unreal. I had a look at other modules which are using configuration files...but I can't get is to work :/
I notices this behaviour months before when I tried to install some snomask plugin using an older non-cvs unreal release.
on /unreal start I get
* unrealircd.conf:78: unknown directive testcommand
when I add some directive globaly and I start unreal.
if it's inside the set { } block unreal does not start at all.
adding an own block just lets CONFIGRUN stop after the blocks "name" line when I type /rehash (but it does not do anything but display a warning on /unreal start).
does anybody have an idea what I am doing wrong? =)
regards
not long ago I started to code a litle unreal module to link my community website (webchat) to an irc server. I chose unreal because the plugin system is great.
everything worked fine untill I tried to add configuration file support to my module. I added hooktypes CONFIGRUN, CONFIGTEST and REHASH to my module but RUN, and TEST are not called when unreal starts up. I am using a CVS snapshot which is just a few days old. both hooks are successfully called when I simply /rehash unreal. I had a look at other modules which are using configuration files...but I can't get is to work :/
I notices this behaviour months before when I tried to install some snomask plugin using an older non-cvs unreal release.
on /unreal start I get
* unrealircd.conf:78: unknown directive testcommand
when I add some directive globaly and I start unreal.
if it's inside the set { } block unreal does not start at all.
adding an own block just lets CONFIGRUN stop after the blocks "name" line when I type /rehash (but it does not do anything but display a warning on /unreal start).
does anybody have an idea what I am doing wrong? =)
regards