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:
+4
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user