i type in make modules (in anope-1.7.19)
and it says:
ircd_netserv.c:6: error: syntax error before '{' token
--------------
Error:
int AnopeInit(int argc, char **argv)
{
EvtHook *hook;
--------------
File:
#include <module.h>
int my_save(int ac, char **av)
int AnopeInit(int argc, char **argv)
{
EvtHook *hook;
hook = createEventHook(EVENT_NEWNICK, my_save);
if (moduleAddEventHook(hook) != MOD_ERR_OK) {
alog("Can't hook to EVENT_NEWNICK event");
return MOD_STOP;
}
return MOD_CONT;
}
note: this is only a little part of the file
i have the rest of the:
int my_save(int ac, char **av)
done
i have the event hook set to notice new nick but i didnt think it would work but the problem is not this surpiringly