From fe14e21175d0bb3923cbbf20e21410179d776daa Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Wed, 8 Jul 2015 18:02:19 +0200 Subject: [PATCH] Update all MOD_TEST/MOD_INIT/MOD_LOAD/MOD_UNLOAD calls to new format --- src/modules/blacklist.c | 8 ++++---- src/modules/cap_invitenotify.c | 6 +++--- src/modules/certfp.c | 6 +++--- src/modules/chanmodes/censor.c | 8 ++++---- src/modules/chanmodes/delayjoin.c | 6 +++--- src/modules/chanmodes/floodprot.c | 6 +++--- src/modules/chanmodes/issecure.c | 8 ++++---- src/modules/chanmodes/link.c | 6 +++--- src/modules/chanmodes/nocolor.c | 8 ++++---- src/modules/chanmodes/noctcp.c | 8 ++++---- src/modules/chanmodes/noinvite.c | 8 ++++---- src/modules/chanmodes/nokick.c | 8 ++++---- src/modules/chanmodes/noknock.c | 8 ++++---- src/modules/chanmodes/nonickchange.c | 8 ++++---- src/modules/chanmodes/nonotice.c | 8 ++++---- src/modules/chanmodes/operonly.c | 8 ++++---- src/modules/chanmodes/permanent.c | 6 +++--- src/modules/chanmodes/regonly.c | 8 ++++---- src/modules/chanmodes/regonlyspeak.c | 8 ++++---- src/modules/chanmodes/secureonly.c | 8 ++++---- src/modules/chanmodes/stripcolor.c | 8 ++++---- src/modules/cloak.c | 8 ++++---- src/modules/extbans/account.c | 6 +++--- src/modules/extbans/certfp.c | 6 +++--- src/modules/extbans/inchannel.c | 6 +++--- src/modules/extbans/join.c | 6 +++--- src/modules/extbans/nickchange.c | 6 +++--- src/modules/extbans/operclass.c | 6 +++--- src/modules/extbans/quiet.c | 6 +++--- src/modules/extbans/realname.c | 6 +++--- src/modules/extbans/regnick.c | 6 +++--- src/modules/jointhrottle.c | 8 ++++---- src/modules/m_addline.c | 6 +++--- src/modules/m_addmotd.c | 6 +++--- src/modules/m_addomotd.c | 6 +++--- src/modules/m_admin.c | 6 +++--- src/modules/m_away.c | 6 +++--- src/modules/m_botmotd.c | 6 +++--- src/modules/m_cap.c | 6 +++--- src/modules/m_chatops.c | 6 +++--- src/modules/m_chghost.c | 6 +++--- src/modules/m_chgident.c | 6 +++--- src/modules/m_chgname.c | 6 +++--- src/modules/m_chmodetst.c | 6 +++--- src/modules/m_close.c | 6 +++--- src/modules/m_connect.c | 6 +++--- src/modules/m_cycle.c | 6 +++--- src/modules/m_dccallow.c | 6 +++--- src/modules/m_dccdeny.c | 6 +++--- src/modules/m_dummy.c | 6 +++--- src/modules/m_eos.c | 6 +++--- src/modules/m_globops.c | 6 +++--- src/modules/m_guest.c | 6 +++--- src/modules/m_help.c | 6 +++--- src/modules/m_invite.c | 6 +++--- src/modules/m_ison.c | 6 +++--- src/modules/m_join.c | 8 ++++---- src/modules/m_kick.c | 6 +++--- src/modules/m_kill.c | 6 +++--- src/modules/m_knock.c | 6 +++--- src/modules/m_lag.c | 6 +++--- src/modules/m_links.c | 6 +++--- src/modules/m_list.c | 8 ++++---- src/modules/m_locops.c | 6 +++--- src/modules/m_lusers.c | 6 +++--- src/modules/m_map.c | 6 +++--- src/modules/m_md.c | 8 ++++---- src/modules/m_mdex.c | 6 +++--- src/modules/m_message.c | 8 ++++---- src/modules/m_mkpasswd.c | 6 +++--- src/modules/m_mode.c | 8 ++++---- src/modules/m_motd.c | 6 +++--- src/modules/m_names.c | 6 +++--- src/modules/m_netinfo.c | 6 +++--- src/modules/m_nick.c | 8 ++++---- src/modules/m_nopost.c | 8 ++++---- src/modules/m_oper.c | 6 +++--- src/modules/m_opermotd.c | 6 +++--- src/modules/m_part.c | 6 +++--- src/modules/m_pass.c | 8 ++++---- src/modules/m_pingpong.c | 6 +++--- src/modules/m_protoctl.c | 6 +++--- src/modules/m_quit.c | 6 +++--- src/modules/m_rping.c | 6 +++--- src/modules/m_rules.c | 6 +++--- src/modules/m_sajoin.c | 6 +++--- src/modules/m_samode.c | 6 +++--- src/modules/m_sapart.c | 6 +++--- src/modules/m_sasl.c | 6 +++--- src/modules/m_sdesc.c | 6 +++--- src/modules/m_sendsno.c | 6 +++--- src/modules/m_sendumode.c | 6 +++--- src/modules/m_server.c | 8 ++++---- src/modules/m_sethost.c | 6 +++--- src/modules/m_setident.c | 6 +++--- src/modules/m_setname.c | 6 +++--- src/modules/m_silence.c | 6 +++--- src/modules/m_sjoin.c | 6 +++--- src/modules/m_sqline.c | 6 +++--- src/modules/m_squit.c | 6 +++--- src/modules/m_starttls.c | 6 +++--- src/modules/m_stats.c | 6 +++--- src/modules/m_svsfline.c | 6 +++--- src/modules/m_svsjoin.c | 6 +++--- src/modules/m_svskill.c | 6 +++--- src/modules/m_svslusers.c | 6 +++--- src/modules/m_svsmode.c | 6 +++--- src/modules/m_svsmotd.c | 6 +++--- src/modules/m_svsnick.c | 6 +++--- src/modules/m_svsnline.c | 6 +++--- src/modules/m_svsnolag.c | 6 +++--- src/modules/m_svsnoop.c | 6 +++--- src/modules/m_svspart.c | 6 +++--- src/modules/m_svssilence.c | 6 +++--- src/modules/m_svssno.c | 6 +++--- src/modules/m_svswatch.c | 6 +++--- src/modules/m_swhois.c | 6 +++--- src/modules/m_time.c | 6 +++--- src/modules/m_tkl.c | 8 ++++---- src/modules/m_topic.c | 6 +++--- src/modules/m_trace.c | 6 +++--- src/modules/m_tsctl.c | 6 +++--- src/modules/m_umode2.c | 6 +++--- src/modules/m_undccdeny.c | 6 +++--- src/modules/m_unkline.c | 6 +++--- src/modules/m_unsqline.c | 6 +++--- src/modules/m_unzline.c | 6 +++--- src/modules/m_user.c | 6 +++--- src/modules/m_userhost.c | 6 +++--- src/modules/m_userip.c | 6 +++--- src/modules/m_vhost.c | 6 +++--- src/modules/m_wallops.c | 6 +++--- src/modules/m_watch.c | 6 +++--- src/modules/m_who.c | 6 +++--- src/modules/m_whois.c | 6 +++--- src/modules/m_whowas.c | 6 +++--- src/modules/snomasks/dccreject.c | 8 ++++---- src/modules/ssl_antidos.c | 6 +++--- src/modules/usermodes/bot.c | 8 ++++---- src/modules/usermodes/censor.c | 8 ++++---- src/modules/usermodes/noctcp.c | 8 ++++---- src/modules/usermodes/nokick.c | 8 ++++---- src/modules/usermodes/privacy.c | 6 +++--- src/modules/usermodes/regonlymsg.c | 6 +++--- src/modules/usermodes/servicebot.c | 8 ++++---- src/modules/usermodes/showwhois.c | 8 ++++---- src/modules/webirc.c | 8 ++++---- 147 files changed, 476 insertions(+), 476 deletions(-) diff --git a/src/modules/blacklist.c b/src/modules/blacklist.c index 0854a8cbf..a2fc7a689 100644 --- a/src/modules/blacklist.c +++ b/src/modules/blacklist.c @@ -101,14 +101,14 @@ void blacklist_free_bluser_if_able(BLUser *bl); #define SetBLUser(x, y) do { moddata_client(x, blacklist_md).ptr = y; } while(0) #define BLUSER(x) ((BLUser *)moddata_client(x, blacklist_md).ptr) -DLLFUNC int MOD_TEST(blacklist)(ModuleInfo *modinfo) +MOD_TEST(blacklist) { HookAdd(modinfo->handle, HOOKTYPE_CONFIGTEST, 0, blacklist_config_test); return MOD_SUCCESS; } /** Called upon module init */ -DLLFUNC int MOD_INIT(blacklist)(ModuleInfo *modinfo) +MOD_INIT(blacklist) { ModDataInfo mreq; @@ -136,13 +136,13 @@ DLLFUNC int MOD_INIT(blacklist)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(blacklist)(int module_load) +MOD_LOAD(blacklist) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(blacklist)(int module_unload) +MOD_UNLOAD(blacklist) { blacklist_free_conf(); return MOD_SUCCESS; diff --git a/src/modules/cap_invitenotify.c b/src/modules/cap_invitenotify.c index 8b3ee30ed..53367888b 100644 --- a/src/modules/cap_invitenotify.c +++ b/src/modules/cap_invitenotify.c @@ -68,7 +68,7 @@ static void cap_invitenotify_invite(aClient *from, aClient *to, aChannel *chptr) } /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(cap_invitenotify)(ModuleInfo *modinfo) +MOD_INIT(cap_invitenotify) { MARK_AS_OFFICIAL_MODULE(modinfo); @@ -79,13 +79,13 @@ DLLFUNC int MOD_INIT(cap_invitenotify)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(cap_invitenotify)(int module_load) +MOD_LOAD(cap_invitenotify) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(cap_invitenotify)(int module_unload) +MOD_UNLOAD(cap_invitenotify) { return MOD_SUCCESS; } diff --git a/src/modules/certfp.c b/src/modules/certfp.c index e6d13e2fe..70af996d5 100644 --- a/src/modules/certfp.c +++ b/src/modules/certfp.c @@ -31,7 +31,7 @@ ModDataInfo *certfp_md; /* Module Data structure which we acquire */ #define WHOISCERTFP_STRING ":%s 276 %s %s :has client certificate fingerprint %s" -DLLFUNC int MOD_INIT(certfp)(ModuleInfo *modinfo) +MOD_INIT(certfp) { ModDataInfo mreq; @@ -54,13 +54,13 @@ ModDataInfo mreq; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(certfp)(int module_load) +MOD_LOAD(certfp) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(certfp)(int module_unload) +MOD_UNLOAD(certfp) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/censor.c b/src/modules/chanmodes/censor.c index 89eedca58..de2bc8e79 100644 --- a/src/modules/chanmodes/censor.c +++ b/src/modules/chanmodes/censor.c @@ -53,13 +53,13 @@ ModuleInfo *ModInfo = NULL; ConfigItem_badword *conf_badword_channel = NULL; -DLLFUNC int MOD_TEST(censor)(ModuleInfo *modinfo) +MOD_TEST(censor) { HookAdd(modinfo->handle, HOOKTYPE_CONFIGTEST, 0, censor_config_test); return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(censor)(ModuleInfo *modinfo) +MOD_INIT(censor) { CmodeInfo req; @@ -81,13 +81,13 @@ DLLFUNC int MOD_INIT(censor)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(censor)(int module_load) +MOD_LOAD(censor) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(censor)(int module_unload) +MOD_UNLOAD(censor) { ConfigItem_badword *badword, *next; diff --git a/src/modules/chanmodes/delayjoin.c b/src/modules/chanmodes/delayjoin.c index 070dd5b61..f305885bb 100644 --- a/src/modules/chanmodes/delayjoin.c +++ b/src/modules/chanmodes/delayjoin.c @@ -36,7 +36,7 @@ DLLFUNC int moded_chanmsg(aClient *sptr, aChannel *chptr, char *text, int notice char *moded_serialize(ModData *m); void moded_unserialize(char *str, ModData *m); -DLLFUNC int MOD_INIT(delayjoin)(ModuleInfo *modinfo) +MOD_INIT(delayjoin) { CmodeInfo req; @@ -84,12 +84,12 @@ DLLFUNC int MOD_INIT(delayjoin)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(delayjoin)(int module_load) +MOD_LOAD(delayjoin) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(delayjoin)(int module_unload) +MOD_UNLOAD(delayjoin) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/floodprot.c b/src/modules/chanmodes/floodprot.c index bb5f833c4..1dc57e9a8 100644 --- a/src/modules/chanmodes/floodprot.c +++ b/src/modules/chanmodes/floodprot.c @@ -114,7 +114,7 @@ int floodprot_remote_nickchange(aClient *cptr, aClient *sptr, char *oldnick); int floodprot_chanmode_del(aChannel *chptr, int m); void userfld_free(ModData *md); -DLLFUNC int MOD_INIT(floodprot)(ModuleInfo *modinfo) +MOD_INIT(floodprot) { CmodeInfo creq; ModDataInfo mreq; @@ -156,14 +156,14 @@ DLLFUNC int MOD_INIT(floodprot)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(floodprot)(int module_load) +MOD_LOAD(floodprot) { EventAddEx(ModInfo->handle, "modef_event", 10, 0, modef_event, NULL); return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(floodprot)(int module_unload) +MOD_UNLOAD(floodprot) { return MOD_FAILED; } diff --git a/src/modules/chanmodes/issecure.c b/src/modules/chanmodes/issecure.c index 679095064..59f72724e 100644 --- a/src/modules/chanmodes/issecure.c +++ b/src/modules/chanmodes/issecure.c @@ -71,12 +71,12 @@ DLLFUNC int issecure_chanmode(aClient *cptr, aClient *sptr, aChannel *chptr, char *modebuf, char *parabuf, int sendts, int samode); -DLLFUNC int MOD_TEST(issecure)(ModuleInfo *modinfo) +MOD_TEST(issecure) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(issecure)(ModuleInfo *modinfo) +MOD_INIT(issecure) { CmodeInfo req; @@ -103,12 +103,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(issecure)(int module_load) +MOD_LOAD(issecure) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(issecure)(int module_unload) +MOD_UNLOAD(issecure) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/link.c b/src/modules/chanmodes/link.c index 47956ac0e..38d40cc29 100644 --- a/src/modules/chanmodes/link.c +++ b/src/modules/chanmodes/link.c @@ -51,7 +51,7 @@ int cmodeL_sjoin_check(aChannel *chptr, void *ourx, void *theirx); int link_can_join_limitexceeded(aClient *sptr, aChannel *chptr, char *key, char *link, char *parv[]); -DLLFUNC int MOD_INIT(link)(ModuleInfo *modinfo) +MOD_INIT(link) { CmodeInfo req; ModuleSetOptions(modinfo->handle, MOD_OPT_PERM_RELOADABLE, 1); @@ -73,13 +73,13 @@ DLLFUNC int MOD_INIT(link)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(link)(int module_load) +MOD_LOAD(link) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(link)(int module_unload) +MOD_UNLOAD(link) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/nocolor.c b/src/modules/chanmodes/nocolor.c index 457a51d10..b6e54fd7a 100644 --- a/src/modules/chanmodes/nocolor.c +++ b/src/modules/chanmodes/nocolor.c @@ -58,12 +58,12 @@ DLLFUNC char *nocolor_prechanmsg(aClient *sptr, aChannel *chptr, char *text, int DLLFUNC char *nocolor_prelocalpart(aClient *sptr, aChannel *chptr, char *comment); DLLFUNC char *nocolor_prelocalquit(aClient *sptr, char *comment); -DLLFUNC int MOD_TEST(nocolor)(ModuleInfo *modinfo) +MOD_TEST(nocolor) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(nocolor)(ModuleInfo *modinfo) +MOD_INIT(nocolor) { CmodeInfo req; @@ -82,12 +82,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(nocolor)(int module_load) +MOD_LOAD(nocolor) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(nocolor)(int module_unload) +MOD_UNLOAD(nocolor) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/noctcp.c b/src/modules/chanmodes/noctcp.c index aec3c71c9..1b13655a0 100644 --- a/src/modules/chanmodes/noctcp.c +++ b/src/modules/chanmodes/noctcp.c @@ -56,12 +56,12 @@ Cmode_t EXTCMODE_NOCTCP; DLLFUNC char *noctcp_prechanmsg(aClient *sptr, aChannel *chptr, char *text, int notice); -DLLFUNC int MOD_TEST(noctcp)(ModuleInfo *modinfo) +MOD_TEST(noctcp) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(noctcp)(ModuleInfo *modinfo) +MOD_INIT(noctcp) { CmodeInfo req; @@ -77,12 +77,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(noctcp)(int module_load) +MOD_LOAD(noctcp) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(noctcp)(int module_unload) +MOD_UNLOAD(noctcp) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/noinvite.c b/src/modules/chanmodes/noinvite.c index 981023613..77660edd7 100644 --- a/src/modules/chanmodes/noinvite.c +++ b/src/modules/chanmodes/noinvite.c @@ -56,12 +56,12 @@ Cmode_t EXTCMODE_NOINVITE; DLLFUNC int noinvite_check (aClient *sptr, aChannel *chptr); -DLLFUNC int MOD_TEST(noinvite)(ModuleInfo *modinfo) +MOD_TEST(noinvite) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(noinvite)(ModuleInfo *modinfo) +MOD_INIT(noinvite) { CmodeInfo req; @@ -78,12 +78,12 @@ DLLFUNC int MOD_INIT(noinvite)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(noinvite)(int module_load) +MOD_LOAD(noinvite) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(noinvite)(int module_unload) +MOD_UNLOAD(noinvite) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/nokick.c b/src/modules/chanmodes/nokick.c index e016e3f64..eb90eaba0 100644 --- a/src/modules/chanmodes/nokick.c +++ b/src/modules/chanmodes/nokick.c @@ -55,12 +55,12 @@ Cmode_t EXTCMODE_NOKICK; int nokick_check (aClient* sptr, aClient* who, aChannel *chptr, char* comment, long sptr_flags, long who_flags, char **reject_reason); -DLLFUNC int MOD_TEST(nokick)(ModuleInfo *modinfo) +MOD_TEST(nokick) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(nokick)(ModuleInfo *modinfo) +MOD_INIT(nokick) { CmodeInfo req; @@ -77,12 +77,12 @@ DLLFUNC int MOD_INIT(nokick)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(nokick)(int module_load) +MOD_LOAD(nokick) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(nokick)(int module_unload) +MOD_UNLOAD(nokick) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/noknock.c b/src/modules/chanmodes/noknock.c index ab1722841..62b03d097 100644 --- a/src/modules/chanmodes/noknock.c +++ b/src/modules/chanmodes/noknock.c @@ -56,12 +56,12 @@ DLLFUNC int noknock_check (aClient *sptr, aChannel *chptr); DLLFUNC int noknock_mode_allow(aClient *cptr, aChannel *chptr, char mode, char *para, int checkt, int what); DLLFUNC int noknock_mode_del (aChannel *chptr, int modeChar); -DLLFUNC int MOD_TEST(noknock)(ModuleInfo *modinfo) +MOD_TEST(noknock) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(noknock)(ModuleInfo *modinfo) +MOD_INIT(noknock) { CmodeInfo req; @@ -79,12 +79,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(noctcp)(int module_load) +MOD_LOAD(noctcp) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(noctcp)(int module_unload) +MOD_UNLOAD(noctcp) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/nonickchange.c b/src/modules/chanmodes/nonickchange.c index a6e495fcc..a5afb4e6c 100644 --- a/src/modules/chanmodes/nonickchange.c +++ b/src/modules/chanmodes/nonickchange.c @@ -55,12 +55,12 @@ Cmode_t EXTCMODE_NONICKCHANGE; DLLFUNC int nonickchange_check (aClient *sptr, aChannel *chptr); -DLLFUNC int MOD_TEST(nonickchange)(ModuleInfo *modinfo) +MOD_TEST(nonickchange) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(nonickchange)(ModuleInfo *modinfo) +MOD_INIT(nonickchange) { CmodeInfo req; @@ -77,12 +77,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(nonickchange)(int module_load) +MOD_LOAD(nonickchange) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(nonickchange)(int module_unload) +MOD_UNLOAD(nonickchange) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/nonotice.c b/src/modules/chanmodes/nonotice.c index b50007e5e..f64901993 100644 --- a/src/modules/chanmodes/nonotice.c +++ b/src/modules/chanmodes/nonotice.c @@ -54,12 +54,12 @@ Cmode_t EXTCMODE_NONOTICE; int nonotice_check_can_send(aClient *cptr, aChannel *chptr, char *msgtext, Membership *lp, int notice); -DLLFUNC int MOD_TEST(nonotice)(ModuleInfo *modinfo) +MOD_TEST(nonotice) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(nonotice)(ModuleInfo *modinfo) +MOD_INIT(nonotice) { CmodeInfo req; @@ -75,12 +75,12 @@ DLLFUNC int MOD_INIT(nonotice)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(nonotice)(int module_load) +MOD_LOAD(nonotice) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(nonotice)(int module_unload) +MOD_UNLOAD(nonotice) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/operonly.c b/src/modules/chanmodes/operonly.c index 8632729c1..a36ea65e2 100644 --- a/src/modules/chanmodes/operonly.c +++ b/src/modules/chanmodes/operonly.c @@ -57,12 +57,12 @@ DLLFUNC int operonly_check (aClient *cptr, aChannel *chptr, char *key, char *par DLLFUNC int operonly_topic_allow (aClient *sptr, aChannel *chptr); DLLFUNC int operonly_check_ban(aClient *cptr, aChannel *chptr); -DLLFUNC int MOD_TEST(operonly)(ModuleInfo *modinfo) +MOD_TEST(operonly) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(operonly)(ModuleInfo *modinfo) +MOD_INIT(operonly) { CmodeInfo req; @@ -81,12 +81,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(noctcp)(int module_load) +MOD_LOAD(noctcp) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(noctcp)(int module_unload) +MOD_UNLOAD(noctcp) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/permanent.c b/src/modules/chanmodes/permanent.c index 06e0e93f9..3141fb2d6 100644 --- a/src/modules/chanmodes/permanent.c +++ b/src/modules/chanmodes/permanent.c @@ -48,7 +48,7 @@ static int permanent_is_ok(aClient *cptr, aChannel *chptr, char mode, char *para } /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(permanent)(ModuleInfo *modinfo) +MOD_INIT(permanent) { CmodeInfo req; @@ -66,13 +66,13 @@ CmodeInfo req; } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(permanent)(int module_load) +MOD_LOAD(permanent) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(permanent)(int module_unload) +MOD_UNLOAD(permanent) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/regonly.c b/src/modules/chanmodes/regonly.c index 27c174645..dd996d306 100644 --- a/src/modules/chanmodes/regonly.c +++ b/src/modules/chanmodes/regonly.c @@ -56,12 +56,12 @@ Cmode_t EXTCMODE_REGONLY; DLLFUNC int regonly_check (aClient *cptr, aChannel *chptr, char *key, char *parv[]); -DLLFUNC int MOD_TEST(regonly)(ModuleInfo *modinfo) +MOD_TEST(regonly) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(regonly)(ModuleInfo *modinfo) +MOD_INIT(regonly) { CmodeInfo req; @@ -78,12 +78,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(regonly)(int module_load) +MOD_LOAD(regonly) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(regonly)(int module_unload) +MOD_UNLOAD(regonly) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/regonlyspeak.c b/src/modules/chanmodes/regonlyspeak.c index 9acd32f8a..2968c9cdc 100644 --- a/src/modules/chanmodes/regonlyspeak.c +++ b/src/modules/chanmodes/regonlyspeak.c @@ -57,12 +57,12 @@ static char errMsg[2048]; DLLFUNC int regonlyspeak_can_send (aClient* cptr, aChannel *chptr, char* message, Membership* lp, int notice); DLLFUNC char * regonlyspeak_part_message (aClient* sptr, aChannel *chptr, char* comment); -DLLFUNC int MOD_TEST(regonlyspeak)(ModuleInfo *modinfo) +MOD_TEST(regonlyspeak) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(regonlyspeak)(ModuleInfo *modinfo) +MOD_INIT(regonlyspeak) { CmodeInfo req; @@ -80,12 +80,12 @@ DLLFUNC int MOD_INIT(regonlyspeak)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(regonlyspeak)(int module_load) +MOD_LOAD(regonlyspeak) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(regonlyspeak)(int module_unload) +MOD_UNLOAD(regonlyspeak) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/secureonly.c b/src/modules/chanmodes/secureonly.c index da5ff84ec..6d71a6514 100644 --- a/src/modules/chanmodes/secureonly.c +++ b/src/modules/chanmodes/secureonly.c @@ -58,12 +58,12 @@ int secureonly_check_send (aClient *acptr, aChannel* chptr); int secureonly_check_secure (aChannel* chptr); int secureonly_check_sajoin (aClient *acptr, aChannel* chptr, aClient *sptr); -DLLFUNC int MOD_TEST(sslonly)(ModuleInfo *modinfo) +MOD_TEST(sslonly) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(sslonly)(ModuleInfo *modinfo) +MOD_INIT(sslonly) { CmodeInfo req; @@ -84,12 +84,12 @@ DLLFUNC int MOD_INIT(sslonly)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(sslonly)(int module_load) +MOD_LOAD(sslonly) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(sslonly)(int module_unload) +MOD_UNLOAD(sslonly) { return MOD_SUCCESS; } diff --git a/src/modules/chanmodes/stripcolor.c b/src/modules/chanmodes/stripcolor.c index 3b07d1c0e..5a2ac31b1 100644 --- a/src/modules/chanmodes/stripcolor.c +++ b/src/modules/chanmodes/stripcolor.c @@ -58,12 +58,12 @@ DLLFUNC char *stripcolor_prechanmsg(aClient *sptr, aChannel *chptr, char *text, DLLFUNC char *stripcolor_prelocalpart(aClient *sptr, aChannel *chptr, char *comment); DLLFUNC char *stripcolor_prelocalquit(aClient *sptr, char *comment); -DLLFUNC int MOD_TEST(stripcolor)(ModuleInfo *modinfo) +MOD_TEST(stripcolor) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(stripcolor)(ModuleInfo *modinfo) +MOD_INIT(stripcolor) { CmodeInfo req; @@ -82,12 +82,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(stripcolor)(int module_load) +MOD_LOAD(stripcolor) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(stripcolor)(int module_unload) +MOD_UNLOAD(stripcolor) { return MOD_SUCCESS; } diff --git a/src/modules/cloak.c b/src/modules/cloak.c index 354adc52e..102769d26 100644 --- a/src/modules/cloak.c +++ b/src/modules/cloak.c @@ -74,7 +74,7 @@ ModuleHeader MOD_HEADER(cloak) NULL }; -DLLFUNC int MOD_TEST(cloak)(ModuleInfo *modinfo) +MOD_TEST(cloak) { cloak = CallbackAddPCharEx(modinfo->handle, CALLBACKTYPE_CLOAK, hidehost); if (!cloak) @@ -93,19 +93,19 @@ DLLFUNC int MOD_TEST(cloak)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(cloak)(ModuleInfo *modinfo) +MOD_INIT(cloak) { MARK_AS_OFFICIAL_MODULE(modinfo); HookAdd(modinfo->handle, HOOKTYPE_CONFIGRUN, 0, cloak_config_run); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(cloak)(int module_load) +MOD_LOAD(cloak) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(cloak)(int module_unload) +MOD_UNLOAD(cloak) { if (cloak_key1) { diff --git a/src/modules/extbans/account.c b/src/modules/extbans/account.c index 62cbf16b7..912b6421f 100644 --- a/src/modules/extbans/account.c +++ b/src/modules/extbans/account.c @@ -32,7 +32,7 @@ char *extban_account_conv_param(char *para); int extban_account_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /** Called upon module init */ -DLLFUNC int MOD_INIT(account)(ModuleInfo *modinfo) +MOD_INIT(account) { ExtbanInfo req; @@ -53,13 +53,13 @@ DLLFUNC int MOD_INIT(account)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(account)(int module_load) +MOD_LOAD(account) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(account)(int module_unload) +MOD_UNLOAD(account) { return MOD_SUCCESS; } diff --git a/src/modules/extbans/certfp.c b/src/modules/extbans/certfp.c index 0e57c4374..716e8fc58 100644 --- a/src/modules/extbans/certfp.c +++ b/src/modules/extbans/certfp.c @@ -33,7 +33,7 @@ char *extban_certfp_conv_param(char *para); int extban_certfp_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /* Called upon module init */ -DLLFUNC int MOD_INIT(certfp)(ModuleInfo *modinfo) +MOD_INIT(certfp) { ExtbanInfo req; @@ -54,13 +54,13 @@ DLLFUNC int MOD_INIT(certfp)(ModuleInfo *modinfo) } /* Called upon module load */ -DLLFUNC int MOD_LOAD(certfp)(int module_load) +MOD_LOAD(certfp) { return MOD_SUCCESS; } /* Called upon unload */ -DLLFUNC int MOD_UNLOAD(account)(int module_unload) +MOD_UNLOAD(account) { return MOD_SUCCESS; } diff --git a/src/modules/extbans/inchannel.c b/src/modules/extbans/inchannel.c index 5be231020..eb4941427 100644 --- a/src/modules/extbans/inchannel.c +++ b/src/modules/extbans/inchannel.c @@ -33,7 +33,7 @@ char *extban_inchannel_conv_param(char *para); int extban_inchannel_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /** Called upon module init */ -DLLFUNC int MOD_INIT(inchannel)(ModuleInfo *modinfo) +MOD_INIT(inchannel) { ExtbanInfo req; @@ -54,13 +54,13 @@ DLLFUNC int MOD_INIT(inchannel)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(inchannel)(int module_load) +MOD_LOAD(inchannel) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(inchannel)(int module_unload) +MOD_UNLOAD(inchannel) { return MOD_SUCCESS; } diff --git a/src/modules/extbans/join.c b/src/modules/extbans/join.c index 38a637876..f287a540f 100644 --- a/src/modules/extbans/join.c +++ b/src/modules/extbans/join.c @@ -31,7 +31,7 @@ ModuleHeader MOD_HEADER(join) int extban_modej_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /** Called upon module init */ -DLLFUNC int MOD_INIT(join)(ModuleInfo *modinfo) +MOD_INIT(join) { ExtbanInfo req; @@ -52,13 +52,13 @@ DLLFUNC int MOD_INIT(join)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(join)(int module_load) +MOD_LOAD(join) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(join)(int module_unload) +MOD_UNLOAD(join) { return MOD_SUCCESS; } diff --git a/src/modules/extbans/nickchange.c b/src/modules/extbans/nickchange.c index 43b4a28d4..f7f72dcdf 100644 --- a/src/modules/extbans/nickchange.c +++ b/src/modules/extbans/nickchange.c @@ -31,7 +31,7 @@ ModuleHeader MOD_HEADER(nickchange) int extban_nickchange_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /** Called upon module init */ -DLLFUNC int MOD_INIT(nickchange)(ModuleInfo *modinfo) +MOD_INIT(nickchange) { ExtbanInfo req; @@ -52,13 +52,13 @@ DLLFUNC int MOD_INIT(nickchange)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(nickchange)(int module_load) +MOD_LOAD(nickchange) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(nickchange)(int module_unload) +MOD_UNLOAD(nickchange) { return MOD_SUCCESS; } diff --git a/src/modules/extbans/operclass.c b/src/modules/extbans/operclass.c index 93e72e108..3255fb790 100644 --- a/src/modules/extbans/operclass.c +++ b/src/modules/extbans/operclass.c @@ -32,7 +32,7 @@ char *extban_operclass_conv_param(char *para); int extban_operclass_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /** Called upon module init */ -DLLFUNC int MOD_INIT(operclass)(ModuleInfo *modinfo) +MOD_INIT(operclass) { ExtbanInfo req; @@ -53,13 +53,13 @@ DLLFUNC int MOD_INIT(operclass)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(operclass)(int module_load) +MOD_LOAD(operclass) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(operclass)(int module_unload) +MOD_UNLOAD(operclass) { return MOD_SUCCESS; } diff --git a/src/modules/extbans/quiet.c b/src/modules/extbans/quiet.c index a3d66f0d5..b17921f63 100644 --- a/src/modules/extbans/quiet.c +++ b/src/modules/extbans/quiet.c @@ -31,7 +31,7 @@ ModuleHeader MOD_HEADER(quiet) int extban_quiet_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /** Called upon module init */ -DLLFUNC int MOD_INIT(quiet)(ModuleInfo *modinfo) +MOD_INIT(quiet) { ExtbanInfo req; @@ -52,13 +52,13 @@ DLLFUNC int MOD_INIT(quiet)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(quiet)(int module_load) +MOD_LOAD(quiet) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(quiet)(int module_unload) +MOD_UNLOAD(quiet) { return MOD_SUCCESS; } diff --git a/src/modules/extbans/realname.c b/src/modules/extbans/realname.c index d3beb2161..5af226dea 100644 --- a/src/modules/extbans/realname.c +++ b/src/modules/extbans/realname.c @@ -32,7 +32,7 @@ char *extban_realname_conv_param(char *para); int extban_realname_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /** Called upon module init */ -DLLFUNC int MOD_INIT(realname)(ModuleInfo *modinfo) +MOD_INIT(realname) { ExtbanInfo req; @@ -53,13 +53,13 @@ DLLFUNC int MOD_INIT(realname)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(realname)(int module_load) +MOD_LOAD(realname) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(realname)(int module_unload) +MOD_UNLOAD(realname) { return MOD_SUCCESS; } diff --git a/src/modules/extbans/regnick.c b/src/modules/extbans/regnick.c index ceb395a7f..9e6b02e36 100644 --- a/src/modules/extbans/regnick.c +++ b/src/modules/extbans/regnick.c @@ -32,7 +32,7 @@ char *extban_regnick_conv_param(char *para); int extban_regnick_is_banned(aClient *sptr, aChannel *chptr, char *banin, int type); /** Called upon module init */ -DLLFUNC int MOD_INIT(regnick)(ModuleInfo *modinfo) +MOD_INIT(regnick) { ExtbanInfo req; @@ -53,13 +53,13 @@ DLLFUNC int MOD_INIT(regnick)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(regnick)(int module_load) +MOD_LOAD(regnick) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(regnick)(int module_unload) +MOD_UNLOAD(regnick) { return MOD_SUCCESS; } diff --git a/src/modules/jointhrottle.c b/src/modules/jointhrottle.c index a1251fc0e..b4a49727f 100644 --- a/src/modules/jointhrottle.c +++ b/src/modules/jointhrottle.c @@ -65,13 +65,13 @@ static void jointhrottle_increase_usercounter(aClient *cptr, aChannel *chptr); EVENT(jointhrottle_cleanup_structs); aJFlood *jointhrottle_addentry(aClient *cptr, aChannel *chptr); -DLLFUNC int MOD_TEST(jointhrottle)(ModuleInfo *modinfo) +MOD_TEST(jointhrottle) { HookAdd(modinfo->handle, HOOKTYPE_CONFIGTEST, 0, jointhrottle_config_test); return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(jointhrottle)(ModuleInfo *modinfo) +MOD_INIT(jointhrottle) { ModDataInfo mreq; @@ -98,13 +98,13 @@ DLLFUNC int MOD_INIT(jointhrottle)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(jointhrottle)(int module_load) +MOD_LOAD(jointhrottle) { EventAddEx(ModInfo->handle, "jointhrottle_cleanup_structs", 60, 0, jointhrottle_cleanup_structs, NULL); return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(jointhrottle)(int module_unload) +MOD_UNLOAD(jointhrottle) { return MOD_FAILED; } diff --git a/src/modules/m_addline.c b/src/modules/m_addline.c index e1ef97177..bef853a09 100644 --- a/src/modules/m_addline.c +++ b/src/modules/m_addline.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_addline) NULL }; -DLLFUNC int MOD_INIT(m_addline)(ModuleInfo *modinfo) +MOD_INIT(m_addline) { CommandAdd(modinfo->handle, MSG_ADDLINE, m_addline, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_addline)(int module_load) +MOD_LOAD(m_addline) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_addline)(int module_unload) +MOD_UNLOAD(m_addline) { return MOD_SUCCESS; } diff --git a/src/modules/m_addmotd.c b/src/modules/m_addmotd.c index f21be837b..1e98842a6 100644 --- a/src/modules/m_addmotd.c +++ b/src/modules/m_addmotd.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_addmotd) NULL }; -DLLFUNC int MOD_INIT(m_addmotd)(ModuleInfo *modinfo) +MOD_INIT(m_addmotd) { CommandAdd(modinfo->handle, MSG_ADDMOTD, m_addmotd, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_addmotd)(int module_load) +MOD_LOAD(m_addmotd) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_addmotd)(int module_unload) +MOD_UNLOAD(m_addmotd) { return MOD_SUCCESS; } diff --git a/src/modules/m_addomotd.c b/src/modules/m_addomotd.c index dd3e806ad..8a41367e5 100644 --- a/src/modules/m_addomotd.c +++ b/src/modules/m_addomotd.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_addomotd) NULL }; -DLLFUNC int MOD_INIT(m_addomotd)(ModuleInfo *modinfo) +MOD_INIT(m_addomotd) { CommandAdd(modinfo->handle, MSG_ADDOMOTD, m_addomotd, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_addomotd)(int module_load) +MOD_LOAD(m_addomotd) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_addomotd)(int module_unload) +MOD_UNLOAD(m_addomotd) { return MOD_SUCCESS; } diff --git a/src/modules/m_admin.c b/src/modules/m_admin.c index f882b4248..79da7b2ef 100644 --- a/src/modules/m_admin.c +++ b/src/modules/m_admin.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_admin) NULL }; -DLLFUNC int MOD_INIT(m_admin)(ModuleInfo *modinfo) +MOD_INIT(m_admin) { CommandAdd(modinfo->handle, MSG_ADMIN, m_admin, MAXPARA, M_UNREGISTERED|M_USER|M_SHUN|M_VIRUS); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_admin)(int module_load) +MOD_LOAD(m_admin) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_admin)(int module_unload) +MOD_UNLOAD(m_admin) { return MOD_SUCCESS; } diff --git a/src/modules/m_away.c b/src/modules/m_away.c index 2a84482ee..6df526531 100644 --- a/src/modules/m_away.c +++ b/src/modules/m_away.c @@ -56,19 +56,19 @@ DLLFUNC ModuleHeader MOD_HEADER(m_away) NULL }; -DLLFUNC int MOD_INIT(m_away)(ModuleInfo *modinfo) +MOD_INIT(m_away) { CommandAdd(modinfo->handle, MSG_AWAY, m_away, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_away)(int module_load) +MOD_LOAD(m_away) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_away)(int module_unload) +MOD_UNLOAD(m_away) { return MOD_SUCCESS; } diff --git a/src/modules/m_botmotd.c b/src/modules/m_botmotd.c index 7ae8ba160..751583545 100644 --- a/src/modules/m_botmotd.c +++ b/src/modules/m_botmotd.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_botmotd) NULL }; -DLLFUNC int MOD_INIT(m_botmotd)(ModuleInfo *modinfo) +MOD_INIT(m_botmotd) { CommandAdd(modinfo->handle, MSG_BOTMOTD, m_botmotd, MAXPARA, M_USER|M_SERVER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_botmotd)(int module_load) +MOD_LOAD(m_botmotd) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_botmotd)(int module_unload) +MOD_UNLOAD(m_botmotd) { return MOD_SUCCESS; } diff --git a/src/modules/m_cap.c b/src/modules/m_cap.c index b7c9ce4b7..0edf8030b 100644 --- a/src/modules/m_cap.c +++ b/src/modules/m_cap.c @@ -452,7 +452,7 @@ DLLFUNC int m_cap(aClient *cptr, aClient *sptr, int parc, char *parv[]) } /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_cap)(ModuleInfo *modinfo) +MOD_INIT(m_cap) { MARK_AS_OFFICIAL_MODULE(modinfo); CommandAdd(modinfo->handle, MSG_CAP, m_cap, MAXPARA, M_UNREGISTERED|M_USER); @@ -461,7 +461,7 @@ DLLFUNC int MOD_INIT(m_cap)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_cap)(int module_load) +MOD_LOAD(m_cap) { clicap_build_list(); return MOD_SUCCESS; @@ -469,7 +469,7 @@ DLLFUNC int MOD_LOAD(m_cap)(int module_load) /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_cap)(int module_unload) +MOD_UNLOAD(m_cap) { // XXX free cap list return MOD_SUCCESS; diff --git a/src/modules/m_chatops.c b/src/modules/m_chatops.c index 68268cad4..874220af6 100644 --- a/src/modules/m_chatops.c +++ b/src/modules/m_chatops.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_chatops) NULL }; -DLLFUNC int MOD_INIT(m_chatops)(ModuleInfo *modinfo) +MOD_INIT(m_chatops) { CommandAdd(modinfo->handle, MSG_CHATOPS, m_chatops, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_chatops)(int module_load) +MOD_LOAD(m_chatops) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_chatops)(int module_unload) +MOD_UNLOAD(m_chatops) { return MOD_SUCCESS; } diff --git a/src/modules/m_chghost.c b/src/modules/m_chghost.c index 8d396b18b..7369592ba 100644 --- a/src/modules/m_chghost.c +++ b/src/modules/m_chghost.c @@ -60,20 +60,20 @@ ModuleHeader MOD_HEADER(m_chghost) "3.2-b8-1", }; -DLLFUNC int MOD_INIT(m_chghost)(ModuleInfo *modinfo) +MOD_INIT(m_chghost) { CommandAdd(modinfo->handle, MSG_CHGHOST, m_chghost, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_chghost)(int module_load) +MOD_LOAD(m_chghost) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_chghost)(int module_unload) +MOD_UNLOAD(m_chghost) { return MOD_SUCCESS; } diff --git a/src/modules/m_chgident.c b/src/modules/m_chgident.c index 240a08767..23150227b 100644 --- a/src/modules/m_chgident.c +++ b/src/modules/m_chgident.c @@ -62,7 +62,7 @@ ModuleHeader MOD_HEADER(m_chgident) NULL }; -DLLFUNC int MOD_INIT(m_chgident)(ModuleInfo *modinfo) +MOD_INIT(m_chgident) { /* extern variable to export m_chgident_info to temporary ModuleHeader *modulebuffer; @@ -74,12 +74,12 @@ DLLFUNC int MOD_INIT(m_chgident)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_chgident)(int module_load) +MOD_LOAD(m_chgident) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_chgident)(int module_unload) +MOD_UNLOAD(m_chgident) { return MOD_SUCCESS; } diff --git a/src/modules/m_chgname.c b/src/modules/m_chgname.c index 0cd45a4d0..2d23fcd0b 100644 --- a/src/modules/m_chgname.c +++ b/src/modules/m_chgname.c @@ -62,7 +62,7 @@ ModuleHeader MOD_HEADER(m_chgname) /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_chgname)(ModuleInfo *modinfo) +MOD_INIT(m_chgname) { CommandAdd(modinfo->handle, MSG_CHGNAME, m_chgname, 2, 0); CommandAdd(modinfo->handle, MSG_SVSNAME, m_chgname, 2, 0); @@ -71,14 +71,14 @@ DLLFUNC int MOD_INIT(m_chgname)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_chgname)(int module_load) +MOD_LOAD(m_chgname) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_chgname)(int module_unload) +MOD_UNLOAD(m_chgname) { return MOD_SUCCESS; } diff --git a/src/modules/m_chmodetst.c b/src/modules/m_chmodetst.c index 04a8e0a1b..79f6b69aa 100644 --- a/src/modules/m_chmodetst.c +++ b/src/modules/m_chmodetst.c @@ -63,7 +63,7 @@ typedef struct { Cmode *ModeTest = NULL, *ModeTest2 = NULL; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_dummy)(ModuleInfo *modinfo) +MOD_INIT(m_dummy) { CmodeInfo req; ircd_log(LOG_ERROR, "debug: mod_init called from chmodetst module"); @@ -94,14 +94,14 @@ DLLFUNC int MOD_INIT(m_dummy)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_dummy)(int module_load) +MOD_LOAD(m_dummy) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_dummy)(int module_unload) +MOD_UNLOAD(m_dummy) { /* Aaaaaaaargh... we are assumed to be a permanent module */ sendto_realops("Mod_Unload was called??? Arghhhhhh.."); diff --git a/src/modules/m_close.c b/src/modules/m_close.c index d82c5d5b2..464a5890c 100644 --- a/src/modules/m_close.c +++ b/src/modules/m_close.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_close) NULL }; -DLLFUNC int MOD_INIT(m_close)(ModuleInfo *modinfo) +MOD_INIT(m_close) { CommandAdd(modinfo->handle, MSG_CLOSE, m_close, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_close)(int module_load) +MOD_LOAD(m_close) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_close)(int module_unload) +MOD_UNLOAD(m_close) { return MOD_SUCCESS; } diff --git a/src/modules/m_connect.c b/src/modules/m_connect.c index 2ff8e0c06..8e495487b 100644 --- a/src/modules/m_connect.c +++ b/src/modules/m_connect.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_connect) NULL }; -DLLFUNC int MOD_INIT(m_connect)(ModuleInfo *modinfo) +MOD_INIT(m_connect) { CommandAdd(modinfo->handle, MSG_CONNECT, m_connect, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_connect)(int module_load) +MOD_LOAD(m_connect) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_connect)(int module_unload) +MOD_UNLOAD(m_connect) { return MOD_SUCCESS; } diff --git a/src/modules/m_cycle.c b/src/modules/m_cycle.c index 640725d20..3ed9a29f8 100644 --- a/src/modules/m_cycle.c +++ b/src/modules/m_cycle.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_cycle) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_cycle)(ModuleInfo *modinfo) +MOD_INIT(m_cycle) { CommandAdd(modinfo->handle, MSG_CYCLE, m_cycle, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,14 +63,14 @@ DLLFUNC int MOD_INIT(m_cycle)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_cycle)(int module_load) +MOD_LOAD(m_cycle) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_cycle)(int module_unload) +MOD_UNLOAD(m_cycle) { return MOD_SUCCESS; } diff --git a/src/modules/m_dccallow.c b/src/modules/m_dccallow.c index 65b9a7278..72fe21601 100644 --- a/src/modules/m_dccallow.c +++ b/src/modules/m_dccallow.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_dccallow) NULL }; -DLLFUNC int MOD_INIT(m_dccallow)(ModuleInfo *modinfo) +MOD_INIT(m_dccallow) { CommandAdd(modinfo->handle, MSG_DCCALLOW, m_dccallow, 1, M_USER|M_ANNOUNCE); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_dccallow)(int module_load) +MOD_LOAD(m_dccallow) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_dccallow)(int module_unload) +MOD_UNLOAD(m_dccallow) { return MOD_SUCCESS; } diff --git a/src/modules/m_dccdeny.c b/src/modules/m_dccdeny.c index 8ee7061d3..db495cb44 100644 --- a/src/modules/m_dccdeny.c +++ b/src/modules/m_dccdeny.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_dccdeny) NULL }; -DLLFUNC int MOD_INIT(m_dccdeny)(ModuleInfo *modinfo) +MOD_INIT(m_dccdeny) { CommandAdd(modinfo->handle, MSG_DCCDENY, m_dccdeny, 2, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_dccdeny)(int module_load) +MOD_LOAD(m_dccdeny) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_dccdeny)(int module_unload) +MOD_UNLOAD(m_dccdeny) { return MOD_SUCCESS; } diff --git a/src/modules/m_dummy.c b/src/modules/m_dummy.c index 767e846df..c0a3f3c53 100644 --- a/src/modules/m_dummy.c +++ b/src/modules/m_dummy.c @@ -40,21 +40,21 @@ ModuleHeader MOD_HEADER(m_dummy) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_dummy)(ModuleInfo *modinfo) +MOD_INIT(m_dummy) { CommandAdd(modinfo->handle, MSG_DUMMY, m_dummy, MAXPARA, 0); return MOD_SUCCESS; } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_dummy)(int module_load) +MOD_LOAD(m_dummy) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_dummy)(int module_unload) +MOD_UNLOAD(m_dummy) { return MOD_SUCCESS; } diff --git a/src/modules/m_eos.c b/src/modules/m_eos.c index 9fa76668e..f73baf2c5 100644 --- a/src/modules/m_eos.c +++ b/src/modules/m_eos.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_eos) NULL }; -DLLFUNC int MOD_INIT(m_eos)(ModuleInfo *modinfo) +MOD_INIT(m_eos) { CommandAdd(modinfo->handle, MSG_EOS, m_eos, MAXPARA, M_SERVER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_eos)(int module_load) +MOD_LOAD(m_eos) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_eos)(int module_unload) +MOD_UNLOAD(m_eos) { return MOD_SUCCESS; } diff --git a/src/modules/m_globops.c b/src/modules/m_globops.c index 7b8d721d0..8e7701b2e 100644 --- a/src/modules/m_globops.c +++ b/src/modules/m_globops.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_globops) NULL }; -DLLFUNC int MOD_INIT(m_globops)(ModuleInfo *modinfo) +MOD_INIT(m_globops) { CommandAdd(modinfo->handle, MSG_GLOBOPS, m_globops, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_globops)(int module_load) +MOD_LOAD(m_globops) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_globops)(int module_unload) +MOD_UNLOAD(m_globops) { return MOD_SUCCESS; } diff --git a/src/modules/m_guest.c b/src/modules/m_guest.c index 10358d1e4..cf1def3c3 100644 --- a/src/modules/m_guest.c +++ b/src/modules/m_guest.c @@ -57,7 +57,7 @@ ModuleHeader MOD_HEADER(m_guest) ModuleInfo *ModGuestInfo; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_guest)(ModuleInfo *modinfo) +MOD_INIT(m_guest) { /* * We call our add_Command crap here @@ -71,7 +71,7 @@ DLLFUNC int MOD_INIT(m_guest)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_guest)(int module_load) +MOD_LOAD(m_guest) { return MOD_SUCCESS; @@ -79,7 +79,7 @@ DLLFUNC int MOD_LOAD(m_guest)(int module_load) /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_guest)(int module_unload) +MOD_UNLOAD(m_guest) { #ifdef GUEST HookDel(GuestHook); diff --git a/src/modules/m_help.c b/src/modules/m_help.c index 35c61ac55..2f2bc60eb 100644 --- a/src/modules/m_help.c +++ b/src/modules/m_help.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_help) NULL }; -DLLFUNC int MOD_INIT(m_help)(ModuleInfo *modinfo) +MOD_INIT(m_help) { CommandAdd(modinfo->handle, MSG_HELP, m_help, 1, 0); CommandAdd(modinfo->handle, MSG_HELPOP, m_help, 1, 0); @@ -63,12 +63,12 @@ DLLFUNC int MOD_INIT(m_help)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_help)(int module_load) +MOD_LOAD(m_help) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_help)(int module_unload) +MOD_UNLOAD(m_help) { return MOD_SUCCESS; } diff --git a/src/modules/m_invite.c b/src/modules/m_invite.c index 09b06a9c6..2b57219df 100644 --- a/src/modules/m_invite.c +++ b/src/modules/m_invite.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_invite) NULL }; -DLLFUNC int MOD_INIT(m_invite)(ModuleInfo *modinfo) +MOD_INIT(m_invite) { CommandAdd(modinfo->handle, MSG_INVITE, m_invite, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_invite)(int module_load) +MOD_LOAD(m_invite) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_invite)(int module_unload) +MOD_UNLOAD(m_invite) { return MOD_SUCCESS; } diff --git a/src/modules/m_ison.c b/src/modules/m_ison.c index ca33c55e4..530de5232 100644 --- a/src/modules/m_ison.c +++ b/src/modules/m_ison.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_ison) NULL }; -DLLFUNC int MOD_INIT(m_ison)(ModuleInfo *modinfo) +MOD_INIT(m_ison) { CommandAdd(modinfo->handle, MSG_ISON, m_ison, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_ison)(int module_load) +MOD_LOAD(m_ison) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_ison)(int module_unload) +MOD_UNLOAD(m_ison) { return MOD_SUCCESS; } diff --git a/src/modules/m_join.c b/src/modules/m_join.c index 9a1c72110..360b76897 100644 --- a/src/modules/m_join.c +++ b/src/modules/m_join.c @@ -66,7 +66,7 @@ ModuleHeader MOD_HEADER(m_join) NULL }; -DLLFUNC int MOD_TEST(m_join)(ModuleInfo *modinfo) +MOD_TEST(m_join) { MARK_AS_OFFICIAL_MODULE(modinfo); EfunctionAddVoid(modinfo->handle, EFUNC_JOIN_CHANNEL, _join_channel); @@ -75,19 +75,19 @@ DLLFUNC int MOD_TEST(m_join)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(m_join)(ModuleInfo *modinfo) +MOD_INIT(m_join) { CommandAdd(modinfo->handle, MSG_JOIN, m_join, MAXPARA, M_USER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_join)(int module_load) +MOD_LOAD(m_join) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_join)(int module_unload) +MOD_UNLOAD(m_join) { return MOD_SUCCESS; } diff --git a/src/modules/m_kick.c b/src/modules/m_kick.c index 10657f29d..e62c798bd 100644 --- a/src/modules/m_kick.c +++ b/src/modules/m_kick.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_kick) NULL }; -DLLFUNC int MOD_INIT(m_kick)(ModuleInfo *modinfo) +MOD_INIT(m_kick) { CommandAdd(modinfo->handle, MSG_KICK, m_kick, 3, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_kick)(int module_load) +MOD_LOAD(m_kick) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_kick)(int module_unload) +MOD_UNLOAD(m_kick) { return MOD_SUCCESS; } diff --git a/src/modules/m_kill.c b/src/modules/m_kill.c index 8868f0d58..1e0ba5215 100644 --- a/src/modules/m_kill.c +++ b/src/modules/m_kill.c @@ -56,7 +56,7 @@ ModuleHeader MOD_HEADER(m_kill) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_kill)(ModuleInfo *modinfo) +MOD_INIT(m_kill) { CommandAdd(modinfo->handle, MSG_KILL, m_kill, 2, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -64,14 +64,14 @@ DLLFUNC int MOD_INIT(m_kill)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_kill)(int module_load) +MOD_LOAD(m_kill) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_kill)(int module_unload) +MOD_UNLOAD(m_kill) { return MOD_SUCCESS; } diff --git a/src/modules/m_knock.c b/src/modules/m_knock.c index c2adb942d..aa18e31f6 100644 --- a/src/modules/m_knock.c +++ b/src/modules/m_knock.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_knock) NULL }; -DLLFUNC int MOD_INIT(m_knock)(ModuleInfo *modinfo) +MOD_INIT(m_knock) { CommandAdd(modinfo->handle, MSG_KNOCK, m_knock, 2, M_USER|M_ANNOUNCE); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_knock)(int module_load) +MOD_LOAD(m_knock) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_knock)(int module_unload) +MOD_UNLOAD(m_knock) { return MOD_SUCCESS; } diff --git a/src/modules/m_lag.c b/src/modules/m_lag.c index a82877eb1..99f4eea5c 100644 --- a/src/modules/m_lag.c +++ b/src/modules/m_lag.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_lag) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_lag)(ModuleInfo *modinfo) +MOD_INIT(m_lag) { CommandAdd(modinfo->handle, MSG_LAG, m_lag, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_lag)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_lag)(int module_load) +MOD_LOAD(m_lag) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_lag)(int module_unload) +MOD_UNLOAD(m_lag) { return MOD_SUCCESS; } diff --git a/src/modules/m_links.c b/src/modules/m_links.c index 15d512d3f..87dab52bb 100644 --- a/src/modules/m_links.c +++ b/src/modules/m_links.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_links) NULL }; -DLLFUNC int MOD_INIT(m_links)(ModuleInfo *modinfo) +MOD_INIT(m_links) { CommandAdd(modinfo->handle, MSG_LINKS, m_links, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_links)(int module_load) +MOD_LOAD(m_links) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_links)(int module_unload) +MOD_UNLOAD(m_links) { return MOD_SUCCESS; } diff --git a/src/modules/m_list.c b/src/modules/m_list.c index 55ccdf593..e5443b8da 100644 --- a/src/modules/m_list.c +++ b/src/modules/m_list.c @@ -55,26 +55,26 @@ ModuleHeader MOD_HEADER(m_list) NULL }; -DLLFUNC int MOD_TEST(m_list)(ModuleInfo *modinfo) +MOD_TEST(m_list) { MARK_AS_OFFICIAL_MODULE(modinfo); EfunctionAddVoid(modinfo->handle, EFUNC_SEND_LIST, _send_list); return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(m_list)(ModuleInfo *modinfo) +MOD_INIT(m_list) { CommandAdd(modinfo->handle, MSG_LIST, m_list, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_list)(int module_load) +MOD_LOAD(m_list) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_list)(int module_unload) +MOD_UNLOAD(m_list) { return MOD_SUCCESS; } diff --git a/src/modules/m_locops.c b/src/modules/m_locops.c index d6967f5c5..fd3032d43 100644 --- a/src/modules/m_locops.c +++ b/src/modules/m_locops.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_locops) NULL }; -DLLFUNC int MOD_INIT(m_locops)(ModuleInfo *modinfo) +MOD_INIT(m_locops) { CommandAdd(modinfo->handle, MSG_LOCOPS, m_locops, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_locops)(int module_load) +MOD_LOAD(m_locops) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_locops)(int module_unload) +MOD_UNLOAD(m_locops) { return MOD_SUCCESS; } diff --git a/src/modules/m_lusers.c b/src/modules/m_lusers.c index 614639d73..a21e16f4e 100644 --- a/src/modules/m_lusers.c +++ b/src/modules/m_lusers.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_lusers) NULL }; -DLLFUNC int MOD_INIT(m_lusers)(ModuleInfo *modinfo) +MOD_INIT(m_lusers) { CommandAdd(modinfo->handle, MSG_LUSERS, m_lusers, MAXPARA, M_USER|M_SERVER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_lusers)(int module_load) +MOD_LOAD(m_lusers) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_lusers)(int module_unload) +MOD_UNLOAD(m_lusers) { return MOD_SUCCESS; } diff --git a/src/modules/m_map.c b/src/modules/m_map.c index b08024223..3b056ae5e 100644 --- a/src/modules/m_map.c +++ b/src/modules/m_map.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_map) NULL }; -DLLFUNC int MOD_INIT(m_map)(ModuleInfo *modinfo) +MOD_INIT(m_map) { CommandAdd(modinfo->handle, MSG_MAP, m_map, MAXPARA, M_USER|M_ANNOUNCE); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_map)(int module_load) +MOD_LOAD(m_map) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_map)(int module_unload) +MOD_UNLOAD(m_map) { return MOD_SUCCESS; } diff --git a/src/modules/m_md.c b/src/modules/m_md.c index ef2a0504d..6621a352f 100644 --- a/src/modules/m_md.c +++ b/src/modules/m_md.c @@ -42,7 +42,7 @@ ModuleHeader MOD_HEADER(m_md) NULL }; -DLLFUNC int MOD_TEST(m_md)(ModuleInfo *modinfo) +MOD_TEST(m_md) { MARK_AS_OFFICIAL_MODULE(modinfo); EfunctionAddVoid(modinfo->handle, EFUNC_SEND_MD_CLIENT, _send_md_client); @@ -52,19 +52,19 @@ DLLFUNC int MOD_TEST(m_md)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(m_md)(ModuleInfo *modinfo) +MOD_INIT(m_md) { CommandAdd(modinfo->handle, "MD", m_md, MAXPARA, M_SERVER); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_md)(int module_load) +MOD_LOAD(m_md) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_md)(int module_unload) +MOD_UNLOAD(m_md) { return MOD_SUCCESS; } diff --git a/src/modules/m_mdex.c b/src/modules/m_mdex.c index 383257fb6..300171ff4 100644 --- a/src/modules/m_mdex.c +++ b/src/modules/m_mdex.c @@ -42,7 +42,7 @@ void mdex_free(ModData *m); char *mdex_serialize(ModData *m); void mdex_unserialize(char *str, ModData *m); -DLLFUNC int MOD_INIT(m_mdex)(ModuleInfo *modinfo) +MOD_INIT(m_mdex) { ModDataInfo mreq; @@ -74,13 +74,13 @@ ModDataInfo mreq; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_mdex)(int module_load) +MOD_LOAD(m_mdex) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_mdex)(int module_unload) +MOD_UNLOAD(m_mdex) { return MOD_SUCCESS; } diff --git a/src/modules/m_message.c b/src/modules/m_message.c index fa8924e14..9d1638c22 100644 --- a/src/modules/m_message.c +++ b/src/modules/m_message.c @@ -63,7 +63,7 @@ ModuleHeader MOD_HEADER(m_message) NULL }; -DLLFUNC int MOD_TEST(m_message)(ModuleInfo *modinfo) +MOD_TEST(m_message) { MARK_AS_OFFICIAL_MODULE(modinfo); EfunctionAddPChar(modinfo->handle, EFUNC_STRIPCOLORS, _StripColors); @@ -73,7 +73,7 @@ DLLFUNC int MOD_TEST(m_message)(ModuleInfo *modinfo) } /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_message)(ModuleInfo *modinfo) +MOD_INIT(m_message) { CommandAdd(modinfo->handle, MSG_PRIVATE, m_private, 2, M_USER|M_SERVER|M_RESETIDLE|M_VIRUS); CommandAdd(modinfo->handle, MSG_NOTICE, m_notice, 2, 0); @@ -82,13 +82,13 @@ DLLFUNC int MOD_INIT(m_message)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_message)(int module_load) +MOD_LOAD(m_message) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_message)(int module_unload) +MOD_UNLOAD(m_message) { return MOD_SUCCESS; } diff --git a/src/modules/m_mkpasswd.c b/src/modules/m_mkpasswd.c index 664f4a169..5b0bcf9d6 100644 --- a/src/modules/m_mkpasswd.c +++ b/src/modules/m_mkpasswd.c @@ -56,19 +56,19 @@ ModuleHeader MOD_HEADER(m_mkpasswd) NULL }; -DLLFUNC int MOD_INIT(m_mkpasswd)(ModuleInfo *modinfo) +MOD_INIT(m_mkpasswd) { CommandAdd(modinfo->handle, MSG_MKPASSWD, m_mkpasswd, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_mkpasswd)(int module_load) +MOD_LOAD(m_mkpasswd) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_mkpasswd)(int module_unload) +MOD_UNLOAD(m_mkpasswd) { return MOD_SUCCESS; } diff --git a/src/modules/m_mode.c b/src/modules/m_mode.c index 72e68cf0d..53ae7f98a 100644 --- a/src/modules/m_mode.c +++ b/src/modules/m_mode.c @@ -78,7 +78,7 @@ ModuleHeader MOD_HEADER(m_mode) NULL }; -DLLFUNC int MOD_TEST(m_mode)(ModuleInfo *modinfo) +MOD_TEST(m_mode) { MARK_AS_OFFICIAL_MODULE(modinfo); EfunctionAddVoid(modinfo->handle, EFUNC_DO_MODE, _do_mode); @@ -87,7 +87,7 @@ DLLFUNC int MOD_TEST(m_mode)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(m_mode)(ModuleInfo *modinfo) +MOD_INIT(m_mode) { CommandAdd(modinfo->handle, MSG_MODE, m_mode, MAXPARA, M_USER|M_SERVER); CommandAdd(modinfo->handle, MSG_MLOCK, m_mlock, MAXPARA, M_SERVER); @@ -95,12 +95,12 @@ DLLFUNC int MOD_INIT(m_mode)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_mode)(int module_load) +MOD_LOAD(m_mode) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_mode)(int module_unload) +MOD_UNLOAD(m_mode) { return MOD_SUCCESS; } diff --git a/src/modules/m_motd.c b/src/modules/m_motd.c index 9b8c3eb28..71214ef92 100644 --- a/src/modules/m_motd.c +++ b/src/modules/m_motd.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_motd) NULL }; -DLLFUNC int MOD_INIT(m_motd)(ModuleInfo *modinfo) +MOD_INIT(m_motd) { CommandAdd(modinfo->handle, MSG_MOTD, m_motd, MAXPARA, M_USER|M_SERVER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_motd)(int module_load) +MOD_LOAD(m_motd) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_motd)(int module_unload) +MOD_UNLOAD(m_motd) { return MOD_SUCCESS; } diff --git a/src/modules/m_names.c b/src/modules/m_names.c index 14c68850e..472b1e0f1 100644 --- a/src/modules/m_names.c +++ b/src/modules/m_names.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_names) NULL }; -DLLFUNC int MOD_INIT(m_names)(ModuleInfo *modinfo) +MOD_INIT(m_names) { CommandAdd(modinfo->handle, MSG_NAMES, m_names, MAXPARA, M_USER|M_SERVER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_names)(int module_load) +MOD_LOAD(m_names) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_names)(int module_unload) +MOD_UNLOAD(m_names) { return MOD_SUCCESS; } diff --git a/src/modules/m_netinfo.c b/src/modules/m_netinfo.c index adbfd601b..9427b88c5 100644 --- a/src/modules/m_netinfo.c +++ b/src/modules/m_netinfo.c @@ -52,19 +52,19 @@ ModuleHeader MOD_HEADER(m_netinfo) NULL }; -DLLFUNC int MOD_INIT(m_netinfo)(ModuleInfo *modinfo) +MOD_INIT(m_netinfo) { CommandAdd(modinfo->handle, MSG_NETINFO, m_netinfo, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_netinfo)(int module_load) +MOD_LOAD(m_netinfo) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_netinfo)(int module_unload) +MOD_UNLOAD(m_netinfo) { return MOD_SUCCESS; } diff --git a/src/modules/m_nick.c b/src/modules/m_nick.c index 87c64499d..6f886fd72 100644 --- a/src/modules/m_nick.c +++ b/src/modules/m_nick.c @@ -56,14 +56,14 @@ ModuleHeader MOD_HEADER(m_nick) NULL }; -DLLFUNC int MOD_TEST(m_nick)(ModuleInfo *modinfo) +MOD_TEST(m_nick) { MARK_AS_OFFICIAL_MODULE(modinfo); EfunctionAdd(modinfo->handle, EFUNC_REGISTER_USER, _register_user); return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(m_nick)(ModuleInfo *modinfo) +MOD_INIT(m_nick) { CommandAdd(modinfo->handle, MSG_NICK, m_nick, MAXPARA, M_USER|M_SERVER|M_UNREGISTERED); CommandAdd(modinfo->handle, "UID", m_uid, MAXPARA, M_SERVER); @@ -71,12 +71,12 @@ DLLFUNC int MOD_INIT(m_nick)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_nick)(int module_load) +MOD_LOAD(m_nick) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_nick)(int module_unload) +MOD_UNLOAD(m_nick) { return MOD_SUCCESS; } diff --git a/src/modules/m_nopost.c b/src/modules/m_nopost.c index 913bc0138..ffdf8475b 100644 --- a/src/modules/m_nopost.c +++ b/src/modules/m_nopost.c @@ -71,13 +71,13 @@ DLLFUNC int m_nopost_config_test(ConfigFile *, ConfigEntry *, int, int *); DLLFUNC int m_nopost_config_run(ConfigFile *, ConfigEntry *, int); static int is_except_host(aClient *sptr); -DLLFUNC int MOD_TEST(m_nopost)(ModuleInfo *modinfo) +MOD_TEST(m_nopost) { HookAdd(modinfo->handle, HOOKTYPE_CONFIGTEST, 0, m_nopost_config_test); return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(m_nopost)(ModuleInfo *modinfo) +MOD_INIT(m_nopost) { CommandAdd(modinfo->handle, "GET", m_nopost, MAXPARA, M_UNREGISTERED); CommandAdd(modinfo->handle, "POST", m_nopost, MAXPARA, M_UNREGISTERED); @@ -88,12 +88,12 @@ DLLFUNC int MOD_INIT(m_nopost)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_nopost)(int module_load) +MOD_LOAD(m_nopost) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_nopost)(int module_unload) +MOD_UNLOAD(m_nopost) { free_config(); return MOD_SUCCESS; diff --git a/src/modules/m_oper.c b/src/modules/m_oper.c index 2b16e77a3..467d3e8f3 100644 --- a/src/modules/m_oper.c +++ b/src/modules/m_oper.c @@ -57,7 +57,7 @@ ModuleHeader MOD_HEADER(m_oper) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_oper)(ModuleInfo *modinfo) +MOD_INIT(m_oper) { CommandAdd(modinfo->handle, MSG_OPER, m_oper, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -65,13 +65,13 @@ DLLFUNC int MOD_INIT(m_oper)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_oper)(int module_load) +MOD_LOAD(m_oper) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_oper)(int module_unload) +MOD_UNLOAD(m_oper) { return MOD_SUCCESS; } diff --git a/src/modules/m_opermotd.c b/src/modules/m_opermotd.c index 200eff3eb..a6e46adc1 100644 --- a/src/modules/m_opermotd.c +++ b/src/modules/m_opermotd.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_opermotd) NULL }; -DLLFUNC int MOD_INIT(m_opermotd)(ModuleInfo *modinfo) +MOD_INIT(m_opermotd) { CommandAdd(modinfo->handle, MSG_OPERMOTD, m_opermotd, MAXPARA, M_USER|M_SERVER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_opermotd)(int module_load) +MOD_LOAD(m_opermotd) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_opermotd)(int module_unload) +MOD_UNLOAD(m_opermotd) { return MOD_SUCCESS; } diff --git a/src/modules/m_part.c b/src/modules/m_part.c index bc4ec2fcb..fa570a867 100644 --- a/src/modules/m_part.c +++ b/src/modules/m_part.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_part) NULL }; -DLLFUNC int MOD_INIT(m_part)(ModuleInfo *modinfo) +MOD_INIT(m_part) { CommandAdd(modinfo->handle, MSG_PART, m_part, 2, M_USER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_part)(int module_load) +MOD_LOAD(m_part) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_part)(int module_unload) +MOD_UNLOAD(m_part) { return MOD_SUCCESS; } diff --git a/src/modules/m_pass.c b/src/modules/m_pass.c index 6f8e4b8c8..1165e1a50 100644 --- a/src/modules/m_pass.c +++ b/src/modules/m_pass.c @@ -62,7 +62,7 @@ ModuleHeader MOD_HEADER(m_pass) /* Forward declarations */ DLLFUNC int _check_banned(aClient *cptr); -DLLFUNC int MOD_TEST(m_pass)(ModuleInfo *modinfo) +MOD_TEST(m_pass) { MARK_AS_OFFICIAL_MODULE(modinfo); @@ -71,7 +71,7 @@ DLLFUNC int MOD_TEST(m_pass)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(m_pass)(ModuleInfo *modinfo) +MOD_INIT(m_pass) { CommandAdd(modinfo->handle, MSG_PASS, m_pass, 1, M_UNREGISTERED|M_USER|M_SERVER); @@ -79,12 +79,12 @@ DLLFUNC int MOD_INIT(m_pass)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_pass)(int module_load) +MOD_LOAD(m_pass) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_pass)(int module_unload) +MOD_UNLOAD(m_pass) { return MOD_SUCCESS; } diff --git a/src/modules/m_pingpong.c b/src/modules/m_pingpong.c index d2430ce80..034312f69 100644 --- a/src/modules/m_pingpong.c +++ b/src/modules/m_pingpong.c @@ -58,7 +58,7 @@ ModuleHeader MOD_HEADER(m_pingpong) NULL }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_pingpong)(ModuleInfo *modinfo) +MOD_INIT(m_pingpong) { /* * We call our add_Command crap here @@ -71,14 +71,14 @@ DLLFUNC int MOD_INIT(m_pingpong)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_pingpong)(int module_load) +MOD_LOAD(m_pingpong) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_pingpong)(int module_unload) +MOD_UNLOAD(m_pingpong) { return MOD_SUCCESS; } diff --git a/src/modules/m_protoctl.c b/src/modules/m_protoctl.c index 9572bdb88..69b087a7a 100644 --- a/src/modules/m_protoctl.c +++ b/src/modules/m_protoctl.c @@ -52,19 +52,19 @@ ModuleHeader MOD_HEADER(m_protoctl) NULL }; -DLLFUNC int MOD_INIT(m_protoctl)(ModuleInfo *modinfo) +MOD_INIT(m_protoctl) { CommandAdd(modinfo->handle, MSG_PROTOCTL, m_protoctl, MAXPARA, M_UNREGISTERED|M_SERVER|M_USER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_protoctl)(int module_load) +MOD_LOAD(m_protoctl) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_protoctl)(int module_unload) +MOD_UNLOAD(m_protoctl) { return MOD_SUCCESS; } diff --git a/src/modules/m_quit.c b/src/modules/m_quit.c index 5117dcffe..042b1010c 100644 --- a/src/modules/m_quit.c +++ b/src/modules/m_quit.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_quit) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_quit)(ModuleInfo *modinfo) +MOD_INIT(m_quit) { CommandAdd(modinfo->handle, MSG_QUIT, m_quit, 1, M_UNREGISTERED|M_USER|M_VIRUS); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_quit)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_quit)(int module_load) +MOD_LOAD(m_quit) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_quit)(int module_unload) +MOD_UNLOAD(m_quit) { return MOD_SUCCESS; } diff --git a/src/modules/m_rping.c b/src/modules/m_rping.c index b93db6f27..b74cdf09c 100644 --- a/src/modules/m_rping.c +++ b/src/modules/m_rping.c @@ -59,7 +59,7 @@ ModuleHeader MOD_HEADER(m_rping) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_rping)(ModuleInfo *modinfo) +MOD_INIT(m_rping) { CommandAdd(modinfo->handle, MSG_RPING, m_rping, MAXPARA, 0); CommandAdd(modinfo->handle, MSG_RPONG, m_rpong, MAXPARA, 0); @@ -68,14 +68,14 @@ DLLFUNC int MOD_INIT(m_rping)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_rping)(int module_load) +MOD_LOAD(m_rping) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_rping)(int module_unload) +MOD_UNLOAD(m_rping) { return MOD_SUCCESS; } diff --git a/src/modules/m_rules.c b/src/modules/m_rules.c index 6c0d469c7..f161a31b2 100644 --- a/src/modules/m_rules.c +++ b/src/modules/m_rules.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_rules) NULL }; -DLLFUNC int MOD_INIT(m_rules)(ModuleInfo *modinfo) +MOD_INIT(m_rules) { CommandAdd(modinfo->handle, MSG_RULES, m_rules, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_rules)(int module_load) +MOD_LOAD(m_rules) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_rules)(int module_unload) +MOD_UNLOAD(m_rules) { return MOD_SUCCESS; } diff --git a/src/modules/m_sajoin.c b/src/modules/m_sajoin.c index 47d25f3af..96ba376c6 100644 --- a/src/modules/m_sajoin.c +++ b/src/modules/m_sajoin.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_sajoin) NULL }; -DLLFUNC int MOD_INIT(m_sajoin)(ModuleInfo *modinfo) +MOD_INIT(m_sajoin) { CommandAdd(modinfo->handle, MSG_SAJOIN, m_sajoin, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_sajoin)(int module_load) +MOD_LOAD(m_sajoin) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_sajoin)(int module_unload) +MOD_UNLOAD(m_sajoin) { return MOD_SUCCESS; } diff --git a/src/modules/m_samode.c b/src/modules/m_samode.c index f448239aa..969335984 100644 --- a/src/modules/m_samode.c +++ b/src/modules/m_samode.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_samode) NULL }; -DLLFUNC int MOD_INIT(m_samode)(ModuleInfo *modinfo) +MOD_INIT(m_samode) { CommandAdd(modinfo->handle, MSG_SAMODE, m_samode, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_samode)(int module_load) +MOD_LOAD(m_samode) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_samode)(int module_unload) +MOD_UNLOAD(m_samode) { return MOD_SUCCESS; } diff --git a/src/modules/m_sapart.c b/src/modules/m_sapart.c index c7a113abe..c3864e2a9 100644 --- a/src/modules/m_sapart.c +++ b/src/modules/m_sapart.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_sapart) NULL }; -DLLFUNC int MOD_INIT(m_sapart)(ModuleInfo *modinfo) +MOD_INIT(m_sapart) { CommandAdd(modinfo->handle, MSG_SAPART, m_sapart, 3, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_sapart)(int module_load) +MOD_LOAD(m_sapart) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_sapart)(int module_unload) +MOD_UNLOAD(m_sapart) { return MOD_SUCCESS; } diff --git a/src/modules/m_sasl.c b/src/modules/m_sasl.c index 6aca5f4f5..fbfe7f48c 100644 --- a/src/modules/m_sasl.c +++ b/src/modules/m_sasl.c @@ -312,7 +312,7 @@ ClientCapability *cap; } /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_sasl)(ModuleInfo *modinfo) +MOD_INIT(m_sasl) { MARK_AS_OFFICIAL_MODULE(modinfo); @@ -329,13 +329,13 @@ DLLFUNC int MOD_INIT(m_sasl)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_sasl)(int module_load) +MOD_LOAD(m_sasl) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_sasl)(int module_unload) +MOD_UNLOAD(m_sasl) { return MOD_SUCCESS; } diff --git a/src/modules/m_sdesc.c b/src/modules/m_sdesc.c index 9bc2e40f4..c23257c14 100644 --- a/src/modules/m_sdesc.c +++ b/src/modules/m_sdesc.c @@ -55,19 +55,19 @@ ModuleHeader MOD_HEADER(m_sdesc) NULL }; -DLLFUNC int MOD_INIT(m_sdesc)(ModuleInfo *modinfo) +MOD_INIT(m_sdesc) { CommandAdd(modinfo->handle, MSG_SDESC, m_sdesc, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_sdesc)(int module_load) +MOD_LOAD(m_sdesc) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_sdesc)(int module_unload) +MOD_UNLOAD(m_sdesc) { return MOD_SUCCESS; } diff --git a/src/modules/m_sendsno.c b/src/modules/m_sendsno.c index 040e370d3..a2cb614d4 100644 --- a/src/modules/m_sendsno.c +++ b/src/modules/m_sendsno.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_sendsno) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_sendsno)(ModuleInfo *modinfo) +MOD_INIT(m_sendsno) { CommandAdd(modinfo->handle, MSG_SENDSNO, m_sendsno, MAXPARA, M_SERVER); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_sendsno)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_sendsno)(int module_load) +MOD_LOAD(m_sendsno) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_sendsno)(int module_unload) +MOD_UNLOAD(m_sendsno) { return MOD_SUCCESS; } diff --git a/src/modules/m_sendumode.c b/src/modules/m_sendumode.c index a8a93be86..ee56a8859 100644 --- a/src/modules/m_sendumode.c +++ b/src/modules/m_sendumode.c @@ -56,7 +56,7 @@ ModuleHeader MOD_HEADER(m_sendumode) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_sendumode)(ModuleInfo *modinfo) +MOD_INIT(m_sendumode) { CommandAdd(modinfo->handle, MSG_SENDUMODE, m_sendumode, MAXPARA, 0); CommandAdd(modinfo->handle, MSG_SMO, m_sendumode, MAXPARA, 0); @@ -65,13 +65,13 @@ DLLFUNC int MOD_INIT(m_sendumode)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_sendumode)(int module_load) +MOD_LOAD(m_sendumode) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_sendumode)(int module_unload) +MOD_UNLOAD(m_sendumode) { return MOD_SUCCESS; } diff --git a/src/modules/m_server.c b/src/modules/m_server.c index 2b7cbdd42..35dec4c6c 100644 --- a/src/modules/m_server.c +++ b/src/modules/m_server.c @@ -62,7 +62,7 @@ ModuleHeader MOD_HEADER(m_server) NULL }; -DLLFUNC int MOD_TEST(m_server)(ModuleInfo *modinfo) +MOD_TEST(m_server) { MARK_AS_OFFICIAL_MODULE(modinfo); EfunctionAddVoid(modinfo->handle, EFUNC_SEND_PROTOCTL_SERVERS, _send_protoctl_servers); @@ -71,7 +71,7 @@ DLLFUNC int MOD_TEST(m_server)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(m_server)(ModuleInfo *modinfo) +MOD_INIT(m_server) { CommandAdd(modinfo->handle, MSG_SERVER, m_server, MAXPARA, M_UNREGISTERED|M_SERVER); CommandAdd(modinfo->handle, "SID", m_server_remote, MAXPARA, M_UNREGISTERED|M_SERVER); @@ -81,12 +81,12 @@ DLLFUNC int MOD_INIT(m_server)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_server)(int module_load) +MOD_LOAD(m_server) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_server)(int module_unload) +MOD_UNLOAD(m_server) { return MOD_SUCCESS; } diff --git a/src/modules/m_sethost.c b/src/modules/m_sethost.c index f4cd4b6d7..2ce1bc78d 100644 --- a/src/modules/m_sethost.c +++ b/src/modules/m_sethost.c @@ -56,19 +56,19 @@ ModuleHeader MOD_HEADER(m_sethost) NULL }; -DLLFUNC int MOD_INIT(m_sethost)(ModuleInfo *modinfo) +MOD_INIT(m_sethost) { CommandAdd(modinfo->handle, MSG_SETHOST, m_sethost, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_sethost)(int module_load) +MOD_LOAD(m_sethost) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_sethost)(int module_unload) +MOD_UNLOAD(m_sethost) { return MOD_SUCCESS; } diff --git a/src/modules/m_setident.c b/src/modules/m_setident.c index c0097a485..219f29960 100644 --- a/src/modules/m_setident.c +++ b/src/modules/m_setident.c @@ -55,19 +55,19 @@ ModuleHeader MOD_HEADER(m_setident) NULL }; -DLLFUNC int MOD_INIT(m_setident)(ModuleInfo *modinfo) +MOD_INIT(m_setident) { CommandAdd(modinfo->handle, MSG_SETIDENT, m_setident, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_setident)(int module_load) +MOD_LOAD(m_setident) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_setident)(int module_unload) +MOD_UNLOAD(m_setident) { return MOD_SUCCESS; } diff --git a/src/modules/m_setname.c b/src/modules/m_setname.c index 444746989..e5d78148e 100644 --- a/src/modules/m_setname.c +++ b/src/modules/m_setname.c @@ -55,19 +55,19 @@ ModuleHeader MOD_HEADER(m_setname) NULL }; -DLLFUNC int MOD_INIT(m_setname)(ModuleInfo *modinfo) +MOD_INIT(m_setname) { CommandAdd(modinfo->handle, MSG_SETNAME, m_setname, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_setname)(int module_load) +MOD_LOAD(m_setname) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_setname)(int module_unload) +MOD_UNLOAD(m_setname) { return MOD_SUCCESS; } diff --git a/src/modules/m_silence.c b/src/modules/m_silence.c index f7d16072f..059b2d53f 100644 --- a/src/modules/m_silence.c +++ b/src/modules/m_silence.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_silence) NULL }; -DLLFUNC int MOD_INIT(m_silence)(ModuleInfo *modinfo) +MOD_INIT(m_silence) { CommandAdd(modinfo->handle, MSG_SILENCE, m_silence, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_silence)(int module_load) +MOD_LOAD(m_silence) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_silence)(int module_unload) +MOD_UNLOAD(m_silence) { return MOD_SUCCESS; } diff --git a/src/modules/m_sjoin.c b/src/modules/m_sjoin.c index ed95e00c5..0068adf2c 100644 --- a/src/modules/m_sjoin.c +++ b/src/modules/m_sjoin.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_sjoin) NULL }; -DLLFUNC int MOD_INIT(m_sjoin)(ModuleInfo *modinfo) +MOD_INIT(m_sjoin) { CommandAdd(modinfo->handle, MSG_SJOIN, m_sjoin, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_sjoin)(int module_load) +MOD_LOAD(m_sjoin) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_sjoin)(int module_unload) +MOD_UNLOAD(m_sjoin) { return MOD_SUCCESS; } diff --git a/src/modules/m_sqline.c b/src/modules/m_sqline.c index 08d0bc0ad..7eda2131d 100644 --- a/src/modules/m_sqline.c +++ b/src/modules/m_sqline.c @@ -57,7 +57,7 @@ ModuleHeader MOD_HEADER(m_sqline) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_sqline)(ModuleInfo *modinfo) +MOD_INIT(m_sqline) { CommandAdd(modinfo->handle, MSG_SQLINE, m_sqline, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -65,14 +65,14 @@ DLLFUNC int MOD_INIT(m_sqline)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_sqline)(int module_load) +MOD_LOAD(m_sqline) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_sqline)(int module_unload) +MOD_UNLOAD(m_sqline) { return MOD_SUCCESS; } diff --git a/src/modules/m_squit.c b/src/modules/m_squit.c index 7229fec13..4d0cd4f7c 100644 --- a/src/modules/m_squit.c +++ b/src/modules/m_squit.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_squit) NULL }; -DLLFUNC int MOD_INIT(m_squit)(ModuleInfo *modinfo) +MOD_INIT(m_squit) { CommandAdd(modinfo->handle, MSG_SQUIT, m_squit, 2, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_squit)(int module_load) +MOD_LOAD(m_squit) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_squit)(int module_unload) +MOD_UNLOAD(m_squit) { return MOD_SUCCESS; } diff --git a/src/modules/m_starttls.c b/src/modules/m_starttls.c index 0c4d3685d..31c7276ab 100644 --- a/src/modules/m_starttls.c +++ b/src/modules/m_starttls.c @@ -57,7 +57,7 @@ ModuleHeader MOD_HEADER(m_starttls) static void m_starttls_caplist(struct list_head *head); -DLLFUNC int MOD_INIT(m_starttls)(ModuleInfo *modinfo) +MOD_INIT(m_starttls) { CommandAdd(modinfo->handle, MSG_STARTTLS, m_starttls, MAXPARA, M_UNREGISTERED|M_ANNOUNCE); @@ -67,12 +67,12 @@ DLLFUNC int MOD_INIT(m_starttls)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_starttls)(int module_load) +MOD_LOAD(m_starttls) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_starttls)(int module_unload) +MOD_UNLOAD(m_starttls) { return MOD_SUCCESS; } diff --git a/src/modules/m_stats.c b/src/modules/m_stats.c index 4b640c5a9..5f5f2a864 100644 --- a/src/modules/m_stats.c +++ b/src/modules/m_stats.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_stats) NULL }; -DLLFUNC int MOD_INIT(m_stats)(ModuleInfo *modinfo) +MOD_INIT(m_stats) { CommandAdd(modinfo->handle, MSG_STATS, m_stats, 3, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_stats)(int module_load) +MOD_LOAD(m_stats) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_stats)(int module_unload) +MOD_UNLOAD(m_stats) { return MOD_SUCCESS; } diff --git a/src/modules/m_svsfline.c b/src/modules/m_svsfline.c index f9a7e5942..21162c914 100644 --- a/src/modules/m_svsfline.c +++ b/src/modules/m_svsfline.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_svsfline) NULL }; -DLLFUNC int MOD_INIT(m_svsfline)(ModuleInfo *modinfo) +MOD_INIT(m_svsfline) { CommandAdd(modinfo->handle, MSG_SVSFLINE, m_svsfline, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_svsfline)(int module_load) +MOD_LOAD(m_svsfline) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_svsfline)(int module_unload) +MOD_UNLOAD(m_svsfline) { return MOD_SUCCESS; } diff --git a/src/modules/m_svsjoin.c b/src/modules/m_svsjoin.c index c7a234336..f6989fb90 100644 --- a/src/modules/m_svsjoin.c +++ b/src/modules/m_svsjoin.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_svsjoin) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_svsjoin)(ModuleInfo *modinfo) +MOD_INIT(m_svsjoin) { CommandAdd(modinfo->handle, MSG_SVSJOIN, m_svsjoin, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_svsjoin)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_svsjoin)(int module_load) +MOD_LOAD(m_svsjoin) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_svsjoin)(int module_unload) +MOD_UNLOAD(m_svsjoin) { return MOD_SUCCESS; } diff --git a/src/modules/m_svskill.c b/src/modules/m_svskill.c index ee20ce357..355dcb676 100644 --- a/src/modules/m_svskill.c +++ b/src/modules/m_svskill.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_svskill) /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_svskill)(ModuleInfo *modinfo) +MOD_INIT(m_svskill) { CommandAdd(modinfo->handle, MSG_SVSKILL, m_svskill, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,14 +63,14 @@ DLLFUNC int MOD_INIT(m_svskill)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_svskill)(int module_load) +MOD_LOAD(m_svskill) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_svskill)(int module_unload) +MOD_UNLOAD(m_svskill) { return MOD_SUCCESS; } diff --git a/src/modules/m_svslusers.c b/src/modules/m_svslusers.c index edf8a52e9..a72ddca6a 100644 --- a/src/modules/m_svslusers.c +++ b/src/modules/m_svslusers.c @@ -55,19 +55,19 @@ ModuleHeader MOD_HEADER(m_svslusers) NULL }; -DLLFUNC int MOD_INIT(m_svslusers)(ModuleInfo *modinfo) +MOD_INIT(m_svslusers) { CommandAdd(modinfo->handle, MSG_SVSLUSERS, m_svslusers, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_svslusers)(int module_load) +MOD_LOAD(m_svslusers) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_svslusers)(int module_unload) +MOD_UNLOAD(m_svslusers) { return MOD_SUCCESS; } diff --git a/src/modules/m_svsmode.c b/src/modules/m_svsmode.c index c7fff0026..0d38180ed 100644 --- a/src/modules/m_svsmode.c +++ b/src/modules/m_svsmode.c @@ -59,7 +59,7 @@ ModuleHeader MOD_HEADER(m_svsmode) NULL }; -DLLFUNC int MOD_INIT(m_svsmode)(ModuleInfo *modinfo) +MOD_INIT(m_svsmode) { CommandAdd(modinfo->handle, MSG_SVSMODE, m_svsmode, MAXPARA, 0); CommandAdd(modinfo->handle, MSG_SVS2MODE, m_svs2mode, MAXPARA, 0); @@ -67,12 +67,12 @@ DLLFUNC int MOD_INIT(m_svsmode)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_svsmode)(int module_load) +MOD_LOAD(m_svsmode) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_svsmode)(int module_unload) +MOD_UNLOAD(m_svsmode) { return MOD_SUCCESS; } diff --git a/src/modules/m_svsmotd.c b/src/modules/m_svsmotd.c index de6f1f0f7..8f6e122d7 100644 --- a/src/modules/m_svsmotd.c +++ b/src/modules/m_svsmotd.c @@ -56,19 +56,19 @@ ModuleHeader MOD_HEADER(m_svsmotd) NULL }; -DLLFUNC int MOD_INIT(m_svsmotd)(ModuleInfo *modinfo) +MOD_INIT(m_svsmotd) { CommandAdd(modinfo->handle, MSG_SVSMOTD, m_svsmotd, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_svsmotd)(int module_load) +MOD_LOAD(m_svsmotd) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_svsmotd)(int module_unload) +MOD_UNLOAD(m_svsmotd) { return MOD_SUCCESS; } diff --git a/src/modules/m_svsnick.c b/src/modules/m_svsnick.c index 1c34a5314..b8a42fbe1 100644 --- a/src/modules/m_svsnick.c +++ b/src/modules/m_svsnick.c @@ -56,19 +56,19 @@ ModuleHeader MOD_HEADER(m_svsnick) NULL }; -DLLFUNC int MOD_INIT(m_svsnick)(ModuleInfo *modinfo) +MOD_INIT(m_svsnick) { CommandAdd(modinfo->handle, MSG_SVSNICK, m_svsnick, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_svsnick)(int module_load) +MOD_LOAD(m_svsnick) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_svsnick)(int module_unload) +MOD_UNLOAD(m_svsnick) { return MOD_SUCCESS; } diff --git a/src/modules/m_svsnline.c b/src/modules/m_svsnline.c index 802384658..8eedf26b4 100644 --- a/src/modules/m_svsnline.c +++ b/src/modules/m_svsnline.c @@ -58,7 +58,7 @@ ModuleHeader MOD_HEADER(m_svsnline) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_svsnline)(ModuleInfo *modinfo) +MOD_INIT(m_svsnline) { CommandAdd(modinfo->handle, MSG_SVSNLINE, m_svsnline, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -66,13 +66,13 @@ DLLFUNC int MOD_INIT(m_svsnline)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_svsnline)(int module_load) +MOD_LOAD(m_svsnline) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_svsnline)(int module_unload) +MOD_UNLOAD(m_svsnline) { return MOD_SUCCESS; } diff --git a/src/modules/m_svsnolag.c b/src/modules/m_svsnolag.c index 4b97962b0..96379a04f 100644 --- a/src/modules/m_svsnolag.c +++ b/src/modules/m_svsnolag.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_svsnolag) NULL }; -DLLFUNC int MOD_INIT(m_svsnolag)(ModuleInfo *modinfo) +MOD_INIT(m_svsnolag) { CommandAdd(modinfo->handle, MSG_SVSNOLAG, m_svsnolag, MAXPARA, 0); CommandAdd(modinfo->handle, MSG_SVS2NOLAG, m_svs2nolag, MAXPARA, 0); @@ -63,12 +63,12 @@ DLLFUNC int MOD_INIT(m_svsnolag)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_svsnolag)(int module_load) +MOD_LOAD(m_svsnolag) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_svsnolag)(int module_unload) +MOD_UNLOAD(m_svsnolag) { return MOD_SUCCESS; } diff --git a/src/modules/m_svsnoop.c b/src/modules/m_svsnoop.c index 020d20a16..cdc3afc0e 100644 --- a/src/modules/m_svsnoop.c +++ b/src/modules/m_svsnoop.c @@ -57,19 +57,19 @@ ModuleHeader MOD_HEADER(m_svsnoop) NULL }; -DLLFUNC int MOD_INIT(m_svsnoop)(ModuleInfo *modinfo) +MOD_INIT(m_svsnoop) { CommandAdd(modinfo->handle, MSG_SVSNOOP, m_svsnoop, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_svsnoop)(int module_load) +MOD_LOAD(m_svsnoop) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_svsnoop)(int module_unload) +MOD_UNLOAD(m_svsnoop) { return MOD_SUCCESS; } diff --git a/src/modules/m_svspart.c b/src/modules/m_svspart.c index 5cc3e69ef..0baf30c0f 100644 --- a/src/modules/m_svspart.c +++ b/src/modules/m_svspart.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_svspart) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_svspart)(ModuleInfo *modinfo) +MOD_INIT(m_svspart) { CommandAdd(modinfo->handle, MSG_SVSPART, m_svspart, 3, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_svspart)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_svspart)(int module_load) +MOD_LOAD(m_svspart) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_svspart)(int module_unload) +MOD_UNLOAD(m_svspart) { return MOD_SUCCESS; } diff --git a/src/modules/m_svssilence.c b/src/modules/m_svssilence.c index 5f06d5c54..eb49ae55c 100644 --- a/src/modules/m_svssilence.c +++ b/src/modules/m_svssilence.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_svssilence) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_svssilence)(ModuleInfo *modinfo) +MOD_INIT(m_svssilence) { CommandAdd(modinfo->handle, MSG_SVSSILENCE, m_svssilence, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_svssilence)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_svssilence)(int module_load) +MOD_LOAD(m_svssilence) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_svssilence)(int module_unload) +MOD_UNLOAD(m_svssilence) { return MOD_SUCCESS; } diff --git a/src/modules/m_svssno.c b/src/modules/m_svssno.c index d1d44604c..5914b0eee 100644 --- a/src/modules/m_svssno.c +++ b/src/modules/m_svssno.c @@ -56,7 +56,7 @@ ModuleHeader MOD_HEADER(m_svssno) NULL }; -DLLFUNC int MOD_INIT(m_svssno)(ModuleInfo *modinfo) +MOD_INIT(m_svssno) { CommandAdd(modinfo->handle, MSG_SVSSNO, m_svssno, MAXPARA, 0); CommandAdd(modinfo->handle, MSG_SVS2SNO, m_svs2sno, MAXPARA, 0); @@ -64,12 +64,12 @@ DLLFUNC int MOD_INIT(m_svssno)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_svssno)(int module_load) +MOD_LOAD(m_svssno) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_svssno)(int module_unload) +MOD_UNLOAD(m_svssno) { return MOD_SUCCESS; } diff --git a/src/modules/m_svswatch.c b/src/modules/m_svswatch.c index d6f7f5b21..542e80780 100644 --- a/src/modules/m_svswatch.c +++ b/src/modules/m_svswatch.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_svswatch) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_svswatch)(ModuleInfo *modinfo) +MOD_INIT(m_svswatch) { CommandAdd(modinfo->handle, MSG_SVSWATCH, m_svswatch, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,14 +63,14 @@ DLLFUNC int MOD_INIT(m_svswatch)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_svswatch)(int module_load) +MOD_LOAD(m_svswatch) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_svswatch)(int module_unload) +MOD_UNLOAD(m_svswatch) { return MOD_SUCCESS; } diff --git a/src/modules/m_swhois.c b/src/modules/m_swhois.c index ba0bd04d5..abb025853 100644 --- a/src/modules/m_swhois.c +++ b/src/modules/m_swhois.c @@ -56,19 +56,19 @@ ModuleHeader MOD_HEADER(m_swhois) NULL }; -DLLFUNC int MOD_INIT(m_swhois)(ModuleInfo *modinfo) +MOD_INIT(m_swhois) { CommandAdd(modinfo->handle, MSG_SWHOIS, m_swhois, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_swhois)(int module_load) +MOD_LOAD(m_swhois) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_swhois)(int module_unload) +MOD_UNLOAD(m_swhois) { return MOD_SUCCESS; } diff --git a/src/modules/m_time.c b/src/modules/m_time.c index 2b2e824a7..e03225413 100644 --- a/src/modules/m_time.c +++ b/src/modules/m_time.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_time) /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_time)(ModuleInfo *modinfo) +MOD_INIT(m_time) { CommandAdd(modinfo->handle, MSG_TIME, m_time, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,14 +63,14 @@ DLLFUNC int MOD_INIT(m_time)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_time)(int module_load) +MOD_LOAD(m_time) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_time)(int module_unload) +MOD_UNLOAD(m_time) { return MOD_SUCCESS; } diff --git a/src/modules/m_tkl.c b/src/modules/m_tkl.c index 496464ded..aba239cba 100644 --- a/src/modules/m_tkl.c +++ b/src/modules/m_tkl.c @@ -120,7 +120,7 @@ ModuleHeader MOD_HEADER(m_tkl) NULL }; -DLLFUNC int MOD_TEST(m_tkl)(ModuleInfo *modinfo) +MOD_TEST(m_tkl) { MARK_AS_OFFICIAL_MODULE(modinfo); TklModInfo = modinfo; @@ -148,7 +148,7 @@ DLLFUNC int MOD_TEST(m_tkl)(ModuleInfo *modinfo) } /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_tkl)(ModuleInfo *modinfo) +MOD_INIT(m_tkl) { MARK_AS_OFFICIAL_MODULE(modinfo); /* @@ -167,14 +167,14 @@ DLLFUNC int MOD_INIT(m_tkl)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_tkl)(int module_load) +MOD_LOAD(m_tkl) { EventAddEx(TklModInfo->handle, "tklexpire", 5, 0, tkl_check_expire, NULL); return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_tkl)(int module_unload) +MOD_UNLOAD(m_tkl) { return MOD_SUCCESS; } diff --git a/src/modules/m_topic.c b/src/modules/m_topic.c index b5e732fb1..6c36260a6 100644 --- a/src/modules/m_topic.c +++ b/src/modules/m_topic.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_topic) NULL }; -DLLFUNC int MOD_INIT(m_topic)(ModuleInfo *modinfo) +MOD_INIT(m_topic) { CommandAdd(modinfo->handle, MSG_TOPIC, m_topic, 4, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_topic)(int module_load) +MOD_LOAD(m_topic) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_topic)(int module_unload) +MOD_UNLOAD(m_topic) { return MOD_SUCCESS; } diff --git a/src/modules/m_trace.c b/src/modules/m_trace.c index c5189e0a3..0e4165168 100644 --- a/src/modules/m_trace.c +++ b/src/modules/m_trace.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_trace) NULL }; -DLLFUNC int MOD_INIT(m_trace)(ModuleInfo *modinfo) +MOD_INIT(m_trace) { CommandAdd(modinfo->handle, MSG_TRACE, m_trace, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_trace)(int module_load) +MOD_LOAD(m_trace) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_trace)(int module_unload) +MOD_UNLOAD(m_trace) { return MOD_SUCCESS; } diff --git a/src/modules/m_tsctl.c b/src/modules/m_tsctl.c index 04a6ad50e..69115dcfa 100644 --- a/src/modules/m_tsctl.c +++ b/src/modules/m_tsctl.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_tsctl) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_tsctl)(ModuleInfo *modinfo) +MOD_INIT(m_tsctl) { /* * We call our add_Command crap here @@ -66,13 +66,13 @@ DLLFUNC int MOD_INIT(m_tsctl)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_tsctl)(int module_load) +MOD_LOAD(m_tsctl) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_tsctl)(int module_unload) +MOD_UNLOAD(m_tsctl) { return MOD_SUCCESS; } diff --git a/src/modules/m_umode2.c b/src/modules/m_umode2.c index 426fe20c7..6e3974a9b 100644 --- a/src/modules/m_umode2.c +++ b/src/modules/m_umode2.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_umode2) NULL }; -DLLFUNC int MOD_INIT(m_umode2)(ModuleInfo *modinfo) +MOD_INIT(m_umode2) { CommandAdd(modinfo->handle, MSG_UMODE2, m_umode2, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_umode2)(int module_load) +MOD_LOAD(m_umode2) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_umode2)(int module_unload) +MOD_UNLOAD(m_umode2) { return MOD_SUCCESS; } diff --git a/src/modules/m_undccdeny.c b/src/modules/m_undccdeny.c index 80c6993ff..19bc09136 100644 --- a/src/modules/m_undccdeny.c +++ b/src/modules/m_undccdeny.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_undccdeny) NULL }; -DLLFUNC int MOD_INIT(m_undccdeny)(ModuleInfo *modinfo) +MOD_INIT(m_undccdeny) { CommandAdd(modinfo->handle, MSG_UNDCCDENY, m_undccdeny, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_undccdeny)(int module_load) +MOD_LOAD(m_undccdeny) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_undccdeny)(int module_unload) +MOD_UNLOAD(m_undccdeny) { return MOD_SUCCESS; } diff --git a/src/modules/m_unkline.c b/src/modules/m_unkline.c index 4f20f5ff1..b035b66cf 100644 --- a/src/modules/m_unkline.c +++ b/src/modules/m_unkline.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_unkline) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_unkline)(ModuleInfo *modinfo) +MOD_INIT(m_unkline) { CommandAdd(modinfo->handle, MSG_UNKLINE, m_unkline, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_unkline)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_unkline)(int module_load) +MOD_LOAD(m_unkline) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_unkline)(int module_unload) +MOD_UNLOAD(m_unkline) { return MOD_SUCCESS; } diff --git a/src/modules/m_unsqline.c b/src/modules/m_unsqline.c index 50de4e6fe..28ba41ca0 100644 --- a/src/modules/m_unsqline.c +++ b/src/modules/m_unsqline.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_unsqline) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_unsqline)(ModuleInfo *modinfo) +MOD_INIT(m_unsqline) { CommandAdd(modinfo->handle, MSG_UNSQLINE, m_unsqline, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_unsqline)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_unsqline)(int module_load) +MOD_LOAD(m_unsqline) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_unsqline)(int module_unload) +MOD_UNLOAD(m_unsqline) { return MOD_SUCCESS; } diff --git a/src/modules/m_unzline.c b/src/modules/m_unzline.c index 5d70a3021..a6aebadcc 100644 --- a/src/modules/m_unzline.c +++ b/src/modules/m_unzline.c @@ -55,7 +55,7 @@ ModuleHeader MOD_HEADER(m_unzline) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_unzline)(ModuleInfo *modinfo) +MOD_INIT(m_unzline) { CommandAdd(modinfo->handle, MSG_UNZLINE, m_unzline, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -63,13 +63,13 @@ DLLFUNC int MOD_INIT(m_unzline)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_unzline)(int module_load) +MOD_LOAD(m_unzline) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_unzline)(int module_unload) +MOD_UNLOAD(m_unzline) { return MOD_SUCCESS; } diff --git a/src/modules/m_user.c b/src/modules/m_user.c index 1dc1e416e..a02b4cfa0 100644 --- a/src/modules/m_user.c +++ b/src/modules/m_user.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_user) NULL }; -DLLFUNC int MOD_INIT(m_user)(ModuleInfo *modinfo) +MOD_INIT(m_user) { CommandAdd(modinfo->handle, MSG_USER, m_user, 4, M_USER|M_UNREGISTERED); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_user)(int module_load) +MOD_LOAD(m_user) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_user)(int module_unload) +MOD_UNLOAD(m_user) { return MOD_SUCCESS; } diff --git a/src/modules/m_userhost.c b/src/modules/m_userhost.c index fd7497fdd..8b296e74d 100644 --- a/src/modules/m_userhost.c +++ b/src/modules/m_userhost.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_userhost) NULL }; -DLLFUNC int MOD_INIT(m_userhost)(ModuleInfo *modinfo) +MOD_INIT(m_userhost) { CommandAdd(modinfo->handle, MSG_USERHOST, m_userhost, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_userhost)(int module_load) +MOD_LOAD(m_userhost) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_userhost)(int module_unload) +MOD_UNLOAD(m_userhost) { return MOD_SUCCESS; } diff --git a/src/modules/m_userip.c b/src/modules/m_userip.c index 04b099b1f..3ec94fd80 100644 --- a/src/modules/m_userip.c +++ b/src/modules/m_userip.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_userip) NULL }; -DLLFUNC int MOD_INIT(m_userip)(ModuleInfo *modinfo) +MOD_INIT(m_userip) { CommandAdd(modinfo->handle, MSG_USERIP, m_userip, 1, M_USER|M_ANNOUNCE); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_userip)(int module_load) +MOD_LOAD(m_userip) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_userip)(int module_unload) +MOD_UNLOAD(m_userip) { return MOD_SUCCESS; } diff --git a/src/modules/m_vhost.c b/src/modules/m_vhost.c index 0cd88cfea..e9e244579 100644 --- a/src/modules/m_vhost.c +++ b/src/modules/m_vhost.c @@ -56,7 +56,7 @@ ModuleHeader MOD_HEADER(m_vhost) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_vhost)(ModuleInfo *modinfo) +MOD_INIT(m_vhost) { CommandAdd(modinfo->handle, MSG_VHOST, m_vhost, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -64,14 +64,14 @@ DLLFUNC int MOD_INIT(m_vhost)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_vhost)(int module_load) +MOD_LOAD(m_vhost) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_vhost)(int module_unload) +MOD_UNLOAD(m_vhost) { return MOD_SUCCESS; } diff --git a/src/modules/m_wallops.c b/src/modules/m_wallops.c index 0746d40d2..c82058218 100644 --- a/src/modules/m_wallops.c +++ b/src/modules/m_wallops.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_wallops) NULL }; -DLLFUNC int MOD_INIT(m_wallops)(ModuleInfo *modinfo) +MOD_INIT(m_wallops) { CommandAdd(modinfo->handle, MSG_WALLOPS, m_wallops, 1, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_wallops)(int module_load) +MOD_LOAD(m_wallops) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_wallops)(int module_unload) +MOD_UNLOAD(m_wallops) { return MOD_SUCCESS; } diff --git a/src/modules/m_watch.c b/src/modules/m_watch.c index f053219b9..f081cbfc9 100644 --- a/src/modules/m_watch.c +++ b/src/modules/m_watch.c @@ -54,19 +54,19 @@ ModuleHeader MOD_HEADER(m_watch) NULL }; -DLLFUNC int MOD_INIT(m_watch)(ModuleInfo *modinfo) +MOD_INIT(m_watch) { CommandAdd(modinfo->handle, MSG_WATCH, m_watch, 1, M_USER|M_SERVER); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_watch)(int module_load) +MOD_LOAD(m_watch) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_watch)(int module_unload) +MOD_UNLOAD(m_watch) { return MOD_SUCCESS; } diff --git a/src/modules/m_who.c b/src/modules/m_who.c index d19a0f8ec..1f96d0549 100644 --- a/src/modules/m_who.c +++ b/src/modules/m_who.c @@ -62,7 +62,7 @@ ModuleHeader MOD_HEADER(m_who) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_who)(ModuleInfo *modinfo) +MOD_INIT(m_who) { CommandAdd(modinfo->handle, MSG_WHO, m_who, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -70,14 +70,14 @@ DLLFUNC int MOD_INIT(m_who)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_who)(int module_load) +MOD_LOAD(m_who) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_who)(int module_unload) +MOD_UNLOAD(m_who) { return MOD_SUCCESS; } diff --git a/src/modules/m_whois.c b/src/modules/m_whois.c index 3f4473d30..4f8819cd1 100644 --- a/src/modules/m_whois.c +++ b/src/modules/m_whois.c @@ -57,7 +57,7 @@ ModuleHeader MOD_HEADER(m_whois) }; /* This is called on module init, before Server Ready */ -DLLFUNC int MOD_INIT(m_whois)(ModuleInfo *modinfo) +MOD_INIT(m_whois) { CommandAdd(modinfo->handle, MSG_WHOIS, m_whois, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); @@ -65,13 +65,13 @@ DLLFUNC int MOD_INIT(m_whois)(ModuleInfo *modinfo) } /* Is first run when server is 100% ready */ -DLLFUNC int MOD_LOAD(m_whois)(int module_load) +MOD_LOAD(m_whois) { return MOD_SUCCESS; } /* Called when module is unloaded */ -DLLFUNC int MOD_UNLOAD(m_whois)(int module_unload) +MOD_UNLOAD(m_whois) { return MOD_SUCCESS; } diff --git a/src/modules/m_whowas.c b/src/modules/m_whowas.c index 4a531055f..621055c44 100644 --- a/src/modules/m_whowas.c +++ b/src/modules/m_whowas.c @@ -55,19 +55,19 @@ ModuleHeader MOD_HEADER(m_whowas) NULL }; -DLLFUNC int MOD_INIT(m_whowas)(ModuleInfo *modinfo) +MOD_INIT(m_whowas) { CommandAdd(modinfo->handle, MSG_WHOWAS, m_whowas, MAXPARA, 0); MARK_AS_OFFICIAL_MODULE(modinfo); return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(m_whowas)(int module_load) +MOD_LOAD(m_whowas) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(m_whowas)(int module_unload) +MOD_UNLOAD(m_whowas) { return MOD_SUCCESS; } diff --git a/src/modules/snomasks/dccreject.c b/src/modules/snomasks/dccreject.c index ce6709ba5..b7f933bc1 100644 --- a/src/modules/snomasks/dccreject.c +++ b/src/modules/snomasks/dccreject.c @@ -35,12 +35,12 @@ long SNO_DCCREJECT = 0L; /* Forward declarations */ int dccreject_dcc_denied(aClient *sptr, aClient *target, char *realfile, char *displayfile, ConfigItem_deny_dcc *dccdeny); -DLLFUNC int MOD_TEST(dccreject)(ModuleInfo *modinfo) +MOD_TEST(dccreject) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(dccreject)(ModuleInfo *modinfo) +MOD_INIT(dccreject) { SnomaskAdd(modinfo->handle, 'D', 1, umode_allow_opers, &SNO_DCCREJECT); @@ -50,12 +50,12 @@ DLLFUNC int MOD_INIT(dccreject)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(dccreject)(int module_load) +MOD_LOAD(dccreject) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(dccreject)(int module_unload) +MOD_UNLOAD(dccreject) { return MOD_SUCCESS; } diff --git a/src/modules/ssl_antidos.c b/src/modules/ssl_antidos.c index 00228eee2..bd4cef824 100644 --- a/src/modules/ssl_antidos.c +++ b/src/modules/ssl_antidos.c @@ -36,7 +36,7 @@ int ssl_antidos_handshake(aClient *acptr); void ssl_antidos_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int idx, long argl, void *argp); -DLLFUNC int MOD_INIT(ssl_antidos)(ModuleInfo *modinfo) +MOD_INIT(ssl_antidos) { HookAdd(modinfo->handle, HOOKTYPE_HANDSHAKE, 0, ssl_antidos_handshake); @@ -52,12 +52,12 @@ DLLFUNC int MOD_INIT(ssl_antidos)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(ssl_antidos)(int module_load) +MOD_LOAD(ssl_antidos) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(ssl_antidos)(int module_unload) +MOD_UNLOAD(ssl_antidos) { return MOD_SUCCESS; } diff --git a/src/modules/usermodes/bot.c b/src/modules/usermodes/bot.c index 578b9d312..a8de583cb 100644 --- a/src/modules/usermodes/bot.c +++ b/src/modules/usermodes/bot.c @@ -41,12 +41,12 @@ int bot_whois(aClient *sptr, aClient *acptr); int bot_who_status(aClient *sptr, aClient *acptr, aChannel *chptr, Member *cm, char *status, int cansee); int bot_umode_change(aClient *sptr, long oldmode, long newmode); -DLLFUNC int MOD_TEST(bot)(ModuleInfo *modinfo) +MOD_TEST(bot) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(bot)(ModuleInfo *modinfo) +MOD_INIT(bot) { UmodeAdd(modinfo->handle, 'B', UMODE_GLOBAL, 0, NULL, &UMODE_BOT); @@ -58,12 +58,12 @@ DLLFUNC int MOD_INIT(bot)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(bot)(int module_load) +MOD_LOAD(bot) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(bot)(int module_unload) +MOD_UNLOAD(bot) { return MOD_SUCCESS; } diff --git a/src/modules/usermodes/censor.c b/src/modules/usermodes/censor.c index fd824e6b9..5261fe235 100644 --- a/src/modules/usermodes/censor.c +++ b/src/modules/usermodes/censor.c @@ -53,13 +53,13 @@ ConfigItem_badword *conf_badword_message = NULL; static ConfigItem_badword *copy_badword_struct(ConfigItem_badword *ca, int regex, int regflags); -DLLFUNC int MOD_TEST(censor)(ModuleInfo *modinfo) +MOD_TEST(censor) { HookAdd(modinfo->handle, HOOKTYPE_CONFIGTEST, 0, censor_config_test); return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(censor)(ModuleInfo *modinfo) +MOD_INIT(censor) { ModInfo = modinfo; @@ -73,13 +73,13 @@ DLLFUNC int MOD_INIT(censor)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(censor)(int module_load) +MOD_LOAD(censor) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(censor)(int module_unload) +MOD_UNLOAD(censor) { ConfigItem_badword *badword, *next; diff --git a/src/modules/usermodes/noctcp.c b/src/modules/usermodes/noctcp.c index 9fc6235ba..18ed6b6c5 100644 --- a/src/modules/usermodes/noctcp.c +++ b/src/modules/usermodes/noctcp.c @@ -56,12 +56,12 @@ long UMODE_NOCTCP = 0L; DLLFUNC char *noctcp_preusermsg(aClient *sptr, aClient *acptr, char *text, int notice); -DLLFUNC int MOD_TEST(noctcp)(ModuleInfo *modinfo) +MOD_TEST(noctcp) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(noctcp)(ModuleInfo *modinfo) +MOD_INIT(noctcp) { CmodeInfo req; @@ -73,12 +73,12 @@ CmodeInfo req; return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(noctcp)(int module_load) +MOD_LOAD(noctcp) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(noctcp)(int module_unload) +MOD_UNLOAD(noctcp) { return MOD_SUCCESS; } diff --git a/src/modules/usermodes/nokick.c b/src/modules/usermodes/nokick.c index 1189b5090..aceb66cb7 100644 --- a/src/modules/usermodes/nokick.c +++ b/src/modules/usermodes/nokick.c @@ -38,12 +38,12 @@ long UMODE_NOKICK = 0L; int nokick_can_kick(aClient *sptr, aClient *target, aChannel *chptr, char *comment, long sptr_flags, long target_flags, char **reject_reason); -DLLFUNC int MOD_TEST(nokick)(ModuleInfo *modinfo) +MOD_TEST(nokick) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(nokick)(ModuleInfo *modinfo) +MOD_INIT(nokick) { UmodeAdd(modinfo->handle, 'q', UMODE_GLOBAL, 1, umode_allow_opers, &UMODE_NOKICK); // TODO: limit more!! @@ -53,12 +53,12 @@ DLLFUNC int MOD_INIT(nokick)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(nokick)(int module_load) +MOD_LOAD(nokick) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(nokick)(int module_unload) +MOD_UNLOAD(nokick) { return MOD_SUCCESS; } diff --git a/src/modules/usermodes/privacy.c b/src/modules/usermodes/privacy.c index d6a9278ff..e61cf208d 100644 --- a/src/modules/usermodes/privacy.c +++ b/src/modules/usermodes/privacy.c @@ -37,7 +37,7 @@ long UMODE_PRIVACY = 0L; /* Forward declarations */ int privacy_see_channel_in_whois(aClient *sptr, aClient *target, aChannel *chptr); -DLLFUNC int MOD_INIT(privacy)(ModuleInfo *modinfo) +MOD_INIT(privacy) { UmodeAdd(modinfo->handle, 'p', UMODE_GLOBAL, 0, umode_allow_all, &UMODE_PRIVACY); @@ -47,12 +47,12 @@ DLLFUNC int MOD_INIT(privacy)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(privacy)(int module_load) +MOD_LOAD(privacy) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(privacy)(int module_unload) +MOD_UNLOAD(privacy) { return MOD_SUCCESS; } diff --git a/src/modules/usermodes/regonlymsg.c b/src/modules/usermodes/regonlymsg.c index 768b1fe5c..298baa559 100644 --- a/src/modules/usermodes/regonlymsg.c +++ b/src/modules/usermodes/regonlymsg.c @@ -37,7 +37,7 @@ long UMODE_REGONLYMSG = 0L; /* Forward declarations */ char *regonlymsg_pre_usermsg(aClient *sptr, aClient *target, char *text, int notice); -DLLFUNC int MOD_INIT(regonlymsg)(ModuleInfo *modinfo) +MOD_INIT(regonlymsg) { UmodeAdd(modinfo->handle, 'R', UMODE_GLOBAL, 0, umode_allow_all, &UMODE_REGONLYMSG); @@ -47,12 +47,12 @@ DLLFUNC int MOD_INIT(regonlymsg)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(regonlymsg)(int module_load) +MOD_LOAD(regonlymsg) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(regonlymsg)(int module_unload) +MOD_UNLOAD(regonlymsg) { return MOD_SUCCESS; } diff --git a/src/modules/usermodes/servicebot.c b/src/modules/usermodes/servicebot.c index 219ab21fe..11b137f0f 100644 --- a/src/modules/usermodes/servicebot.c +++ b/src/modules/usermodes/servicebot.c @@ -45,12 +45,12 @@ int servicebot_pre_kill(aClient *sptr, aClient *target, char *reason); int servicebot_whois(aClient *sptr, aClient *acptr); int servicebot_see_channel_in_whois(aClient *sptr, aClient *target, aChannel *chptr); -DLLFUNC int MOD_TEST(servicebot)(ModuleInfo *modinfo) +MOD_TEST(servicebot) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(servicebot)(ModuleInfo *modinfo) +MOD_INIT(servicebot) { UmodeAdd(modinfo->handle, 'S', UMODE_GLOBAL, 1, umode_allow_none, &UMODE_SERVICEBOT); @@ -64,12 +64,12 @@ DLLFUNC int MOD_INIT(servicebot)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(servicebot)(int module_load) +MOD_LOAD(servicebot) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(servicebot)(int module_unload) +MOD_UNLOAD(servicebot) { return MOD_SUCCESS; } diff --git a/src/modules/usermodes/showwhois.c b/src/modules/usermodes/showwhois.c index e508677d6..2c2313996 100644 --- a/src/modules/usermodes/showwhois.c +++ b/src/modules/usermodes/showwhois.c @@ -37,12 +37,12 @@ long UMODE_SHOWWHOIS = 0L; /* Forward declarations */ int showwhois_whois(aClient *sptr, aClient *acptr); -DLLFUNC int MOD_TEST(showwhois)(ModuleInfo *modinfo) +MOD_TEST(showwhois) { return MOD_SUCCESS; } -DLLFUNC int MOD_INIT(showwhois)(ModuleInfo *modinfo) +MOD_INIT(showwhois) { UmodeAdd(modinfo->handle, 'W', UMODE_GLOBAL, 1, umode_allow_opers, &UMODE_SHOWWHOIS); @@ -52,12 +52,12 @@ DLLFUNC int MOD_INIT(showwhois)(ModuleInfo *modinfo) return MOD_SUCCESS; } -DLLFUNC int MOD_LOAD(showwhois)(int module_load) +MOD_LOAD(showwhois) { return MOD_SUCCESS; } -DLLFUNC int MOD_UNLOAD(showwhois)(int module_unload) +MOD_UNLOAD(showwhois) { return MOD_SUCCESS; } diff --git a/src/modules/webirc.c b/src/modules/webirc.c index 7a853f42c..36d3781d4 100644 --- a/src/modules/webirc.c +++ b/src/modules/webirc.c @@ -63,14 +63,14 @@ void webirc_md_free(ModData *md); #define MSG_WEBIRC "WEBIRC" -DLLFUNC int MOD_TEST(webirc)(ModuleInfo *modinfo) +MOD_TEST(webirc) { HookAdd(modinfo->handle, HOOKTYPE_CONFIGTEST, 0, webirc_config_test); return MOD_SUCCESS; } /** Called upon module init */ -DLLFUNC int MOD_INIT(webirc)(ModuleInfo *modinfo) +MOD_INIT(webirc) { ModDataInfo mreq; @@ -97,13 +97,13 @@ DLLFUNC int MOD_INIT(webirc)(ModuleInfo *modinfo) } /** Called upon module load */ -DLLFUNC int MOD_LOAD(webirc)(int module_load) +MOD_LOAD(webirc) { return MOD_SUCCESS; } /** Called upon unload */ -DLLFUNC int MOD_UNLOAD(webirc)(int module_unload) +MOD_UNLOAD(webirc) { webirc_free_conf(); return MOD_SUCCESS;