pirc-pl / unrealircd-modules

8 stars 2 forks source link

www-stats don't work anymore #19

Closed Muzikals closed 1 year ago

Muzikals commented 1 year ago

Hello :)

When I try to install wwwstats on unreal UnrealIRCd-6.1.2.2 with the command "./unrealircd module install third/wwwstats", I have this errors :

BF536238.wwwstats.c: In function ‘Mod_Init’:
/home/unrealircd/unrealircd-6.1.2.2/include/modules.h:2461:9: error: call to ‘_hook_error_incompatible’ declared with attribute error: Incompatible hook function. Check arguments and return type of function.
 2461 |         _hook_error_incompatible();
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/unrealircd/unrealircd-6.1.2.2/include/modules.h:905:9: note: in expansion of macro ‘ValidateHooks’
  905 |         ValidateHooks(hooktype, func); \
      |         ^~~~~~~~~~~~~
BF536238.wwwstats.c:177:9: note: in expansion of macro ‘HookAdd’
  177 |         HookAdd(modinfo->handle, HOOKTYPE_PRE_CHANMSG, 0, wwwstats_msg);
      |         ^~~~~~~
make[2]: *** [Makefile:46 : custommodule] Erreur 1
make[2] : on quitte le répertoire « /home/unrealircd/unrealircd-6.1.2.2/src/modules/third »
make[1]: *** [Makefile:69 : custommodule] Erreur 2
make[1] : on quitte le répertoire « /home/unrealircd/unrealircd-6.1.2.2/src »
make: *** [Makefile:136 : custommodule] Erreur 2
ERROR: Compile errors encountered while compiling module 'third/wwwstats'

Can you do something about that ?

k4bek4be commented 1 year ago

There was an API change in 6.1.2-rc1. The module will be updated. Thanks for your report.

k4bek4be commented 1 year ago

Fixed.