mirror of
https://github.com/matrix-construct/construct
synced 2024-11-20 00:33:15 +01:00
Add AV2 descriptions to all m_c* modules.
This commit is contained in:
parent
3c88406edc
commit
5544da98b8
8 changed files with 39 additions and 10 deletions
|
@ -54,7 +54,10 @@ struct Message cap_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 cap_clist[] = { &cap_msgtab, NULL };
|
mapi_clist_av1 cap_clist[] = { &cap_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(cap, NULL, NULL, cap_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char cap_desc[] = "Provides the commands used for client capability negotiation";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(cap, NULL, NULL, cap_clist, NULL, NULL, NULL, NULL, cap_desc);
|
||||||
|
|
||||||
#define IsCapableEntry(c, e) IsCapable(c, 1 << (e)->value)
|
#define IsCapableEntry(c, e) IsCapable(c, 1 << (e)->value)
|
||||||
#define HasCapabilityFlag(c, f) (c->ownerdata != NULL && (((struct ClientCapability *)c->ownerdata)->flags & (f)) == f)
|
#define HasCapabilityFlag(c, f) (c->ownerdata != NULL && (((struct ClientCapability *)c->ownerdata)->flags & (f)) == f)
|
||||||
|
|
|
@ -44,7 +44,10 @@ struct Message gcap_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 capab_clist[] = { &capab_msgtab, &gcap_msgtab, NULL };
|
mapi_clist_av1 capab_clist[] = { &capab_msgtab, &gcap_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(capab, NULL, NULL, capab_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char capab_desc[] = "Provides the commands used for server-to-server capability negotiation";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(capab, NULL, NULL, capab_clist, NULL, NULL, NULL, NULL, capab_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* mr_capab - CAPAB message handler
|
* mr_capab - CAPAB message handler
|
||||||
|
|
|
@ -47,7 +47,10 @@ struct Message certfp_msgtab = {
|
||||||
|
|
||||||
mapi_clist_av1 certfp_clist[] = { &certfp_msgtab, NULL };
|
mapi_clist_av1 certfp_clist[] = { &certfp_msgtab, NULL };
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(certfp, NULL, NULL, certfp_clist, NULL, NULL, NULL, NULL, NULL);
|
static const char certfp_desc[] =
|
||||||
|
"Provides the CERTFP facility used by servers to set certificate fingerprints";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(certfp, NULL, NULL, certfp_clist, NULL, NULL, NULL, NULL, certfp_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** me_certfp
|
** me_certfp
|
||||||
|
|
|
@ -67,7 +67,9 @@ static int challenge_load(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(challenge, challenge_load, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
static const char challenge_desc[] = "Does nothing as OpenSSL was not enabled.";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(challenge, challenge_load, NULL, NULL, NULL, NULL, NULL, NULL, challenge_desc);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static int m_challenge(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
static int m_challenge(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||||
|
@ -79,7 +81,12 @@ struct Message challenge_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 challenge_clist[] = { &challenge_msgtab, NULL };
|
mapi_clist_av1 challenge_clist[] = { &challenge_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(challenge, NULL, NULL, challenge_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char challenge_desc[] =
|
||||||
|
"Provides the challenge-response facility used for becoming an IRC operator";
|
||||||
|
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(challenge, NULL, NULL, challenge_clist, NULL, NULL, NULL, NULL, challenge_desc);
|
||||||
|
|
||||||
static int generate_challenge(char **r_challenge, char **r_response, RSA * key);
|
static int generate_challenge(char **r_challenge, char **r_response, RSA * key);
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,9 @@ struct Message chghost_msgtab = {
|
||||||
|
|
||||||
mapi_clist_av1 chghost_clist[] = { &chghost_msgtab, &realhost_msgtab, NULL };
|
mapi_clist_av1 chghost_clist[] = { &chghost_msgtab, &realhost_msgtab, NULL };
|
||||||
|
|
||||||
DECLARE_MODULE_AV2(chghost, NULL, NULL, chghost_clist, NULL, NULL, NULL, NULL, NULL);
|
static const char chghost_desc[] = "Provides commands used to change and retrieve client hostnames";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(chghost, NULL, NULL, chghost_clist, NULL, NULL, NULL, NULL, chghost_desc);
|
||||||
|
|
||||||
/* clean_host()
|
/* clean_host()
|
||||||
*
|
*
|
||||||
|
|
|
@ -39,7 +39,10 @@ struct Message close_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 close_clist[] = { &close_msgtab, NULL };
|
mapi_clist_av1 close_clist[] = { &close_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(close, NULL, NULL, close_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char close_desc[] = "Provides the CLOSE command to clear all unfinished connections";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(close, NULL, NULL, close_clist, NULL, NULL, NULL, NULL, close_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* mo_close - CLOSE message handler
|
* mo_close - CLOSE message handler
|
||||||
|
|
|
@ -72,7 +72,11 @@ struct Message cnotice_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 cmessage_clist[] = { &cprivmsg_msgtab, &cnotice_msgtab, NULL };
|
mapi_clist_av1 cmessage_clist[] = { &cprivmsg_msgtab, &cnotice_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(cmessage, _modinit, _moddeinit, cmessage_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char cmessage_desc[] =
|
||||||
|
"Provides the CPRIVMSG and CNOTICE facilities for bypassing anti-spam measures";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(cmessage, _modinit, _moddeinit, cmessage_clist, NULL, NULL, NULL, NULL, cmessage_desc);
|
||||||
|
|
||||||
#define PRIVMSG 0
|
#define PRIVMSG 0
|
||||||
#define NOTICE 1
|
#define NOTICE 1
|
||||||
|
|
|
@ -47,7 +47,11 @@ struct Message connect_msgtab = {
|
||||||
};
|
};
|
||||||
|
|
||||||
mapi_clist_av1 connect_clist[] = { &connect_msgtab, NULL };
|
mapi_clist_av1 connect_clist[] = { &connect_msgtab, NULL };
|
||||||
DECLARE_MODULE_AV2(connect, NULL, NULL, connect_clist, NULL, NULL, NULL, NULL, NULL);
|
|
||||||
|
static const char connect_desc[] =
|
||||||
|
"Provides the CONNECT command to introduce servers to the network";
|
||||||
|
|
||||||
|
DECLARE_MODULE_AV2(connect, NULL, NULL, connect_clist, NULL, NULL, NULL, NULL, connect_desc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* mo_connect - CONNECT command handler
|
* mo_connect - CONNECT command handler
|
||||||
|
|
Loading…
Reference in a new issue