Page 1 of 1

Module Help

Posted: Thu Mar 06, 2008 9:54 pm
by Blackbelt12
I know this is a stupid question, but how do I add a module to my IRC? I'm trying to add the m_listreg.c module and I get this error in IRC when I type /os modload m_listreg. The error I get is OS-Unable to load module m_listreg

Re: Module Help

Posted: Thu Mar 06, 2008 11:00 pm
by Jobe
OperServ cannot load Unreal's modules. Unreals modules have to be loaded in unrealircd.conf using "loadmodule" lines.

Re: Module Help

Posted: Thu Mar 06, 2008 11:12 pm
by Blackbelt12
So would I put the m_listreg.c in the src/modules section of Unreal and NOT in the the scr/modules of Anope?

EDIT

Well I did that, put this in my unrealircd.conf: loadmodule "src/modules/m_listreg.c";
then I rehashed my IRC and then IRC gives me this error:

unrealircd.conf:38: loadmodule src/modules/m_listreg.c: failed to load: tmp/D0B83022.m_listreg.c: invalid ELF header

Re: Module Help

Posted: Fri Mar 07, 2008 8:23 am
by Casper
Try loading the one with the ".so" extension for *NIX or for windows with the .DLL !

Re: Module Help

Posted: Fri Mar 07, 2008 9:19 pm
by Blackbelt12
Thanks a lot man it worked!