1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 18:53:13 +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
@@ -22,7 +22,7 @@
#include "unrealircd.h"
ModuleHeader MOD_HEADER(batch)
ModuleHeader MOD_HEADER
= {
"batch",
"5.0",
@@ -39,7 +39,7 @@ long CAP_BATCH = 0L;
int batch_mtag_is_ok(Client *acptr, char *name, char *value);
MOD_INIT(batch)
MOD_INIT()
{
ClientCapabilityInfo cap;
ClientCapability *c;
@@ -61,12 +61,12 @@ MOD_INIT(batch)
return MOD_SUCCESS;
}
MOD_LOAD(batch)
MOD_LOAD()
{
return MOD_SUCCESS;
}
MOD_UNLOAD(batch)
MOD_UNLOAD()
{
return MOD_SUCCESS;
}