1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 12:23:12 +02:00

MOD_LOAD(xyz) is now just MOD_LOAD(), same for MOD_TEST, MOD_INIT,

MOD_UNLOAD. And MOD_HEADER(xyz) is now MOD_HEADER even without ()
since this isn't a function, really.
To make things understandable I added the following to the
developer section of the release notes:

* The module header is now as follows:
  ModuleHeader MOD_HEADER
    = {
          "nameofmodule",
          "5.0",
          "Some description",
          "Name of Author",
          "unrealircd-5",
      };
  There's a new author field, the version must start with a digit,
  and also the name of the module must match the loadmodule name.
  So for example third/funmod must also be named third/funmod.
* The MOD_TEST, MOD_INIT, MOD_LOAD and MOD_UNLOAD functions no longer
  take a name argument. So: MOD_INIT(mymod) is now MOD_INIT()
This commit is contained in:
Bram Matthys
2019-09-13 15:15:47 +02:00
parent 9114c0ed85
commit bb1bb35f50
178 changed files with 778 additions and 770 deletions
+4 -4
View File
@@ -23,7 +23,7 @@
#define IsSecureOnlyMsg(cptr) (cptr->umodes & UMODE_SECUREONLYMSG)
/* Module header */
ModuleHeader MOD_HEADER(secureonlymsg)
ModuleHeader MOD_HEADER
= {
"usermodes/secureonlymsg",
"4.2",
@@ -38,7 +38,7 @@ long UMODE_SECUREONLYMSG = 0L;
/* Forward declarations */
char *secureonlymsg_pre_usermsg(Client *sptr, Client *target, char *text, int notice);
MOD_INIT(secureonlymsg)
MOD_INIT()
{
UmodeAdd(modinfo->handle, 'Z', UMODE_GLOBAL, 0, umode_allow_all, &UMODE_SECUREONLYMSG);
@@ -48,12 +48,12 @@ MOD_INIT(secureonlymsg)
return MOD_SUCCESS;
}
MOD_LOAD(secureonlymsg)
MOD_LOAD()
{
return MOD_SUCCESS;
}
MOD_UNLOAD(secureonlymsg)
MOD_UNLOAD()
{
return MOD_SUCCESS;
}