Move module description headers to the top
This is cleaner. Note this was broken out of a much larger piece of work I did, so if there's any problems, I apologise!
This commit is contained in:
parent
6287d57fa9
commit
eeabf33a7c
127 changed files with 400 additions and 342 deletions
|
@ -34,6 +34,9 @@
|
|||
#include "chmode.h"
|
||||
#include "inline/stringops.h"
|
||||
|
||||
static const char cap_account_tag_desc[] =
|
||||
"Provides the account-tag client capability";
|
||||
|
||||
static void cap_account_tag_process(hook_data *);
|
||||
unsigned int CLICAP_ACCOUNT_TAG = 0;
|
||||
|
||||
|
@ -45,9 +48,6 @@ mapi_cap_list_av2 cap_account_tag_cap_list[] = {
|
|||
{ MAPI_CAP_CLIENT, "account-tag", NULL, &CLICAP_ACCOUNT_TAG },
|
||||
{ 0, NULL, NULL, NULL },
|
||||
};
|
||||
static const char cap_account_tag_desc[] =
|
||||
"Provides the account-tag client capability";
|
||||
|
||||
static void
|
||||
cap_account_tag_process(hook_data *data)
|
||||
{
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
#include "chmode.h"
|
||||
#include "inline/stringops.h"
|
||||
|
||||
static const char cap_server_time_desc[] =
|
||||
"Provides the server-time client capability";
|
||||
|
||||
static void cap_server_time_process(hook_data *);
|
||||
unsigned int CLICAP_SERVER_TIME = 0;
|
||||
|
||||
|
@ -45,8 +48,6 @@ mapi_cap_list_av2 cap_server_time_cap_list[] = {
|
|||
{ MAPI_CAP_CLIENT, "server-time", NULL, &CLICAP_SERVER_TIME },
|
||||
{ 0, NULL, NULL, NULL }
|
||||
};
|
||||
static const char cap_server_time_desc[] =
|
||||
"Provides the server-time client capability";
|
||||
|
||||
static void
|
||||
cap_server_time_process(hook_data *data)
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
#include "chmode.h"
|
||||
#include "inline/stringops.h"
|
||||
|
||||
static const char chm_nocolour_desc[] =
|
||||
"Enables channel mode +c that filters colours and formatting from a channel";
|
||||
|
||||
static char buf[BUFSIZE];
|
||||
static unsigned int mode_nocolour;
|
||||
|
||||
|
@ -44,9 +47,6 @@ mapi_hfn_list_av1 chm_nocolour_hfnlist[] = {
|
|||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
static const char chm_nocolour_desc[] =
|
||||
"Enables channel mode +c that filters colours and formatting from a channel";
|
||||
|
||||
static void
|
||||
chm_nocolour_process(hook_data_privmsg_channel *data)
|
||||
{
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
#include "chmode.h"
|
||||
#include "inline/stringops.h"
|
||||
|
||||
static const char chm_noctcp_desc[] =
|
||||
"Adds channel mode +C, which blocks CTCP messages from a channel (except ACTION)";
|
||||
|
||||
static unsigned int mode_noctcp;
|
||||
|
||||
static void chm_noctcp_process(hook_data_privmsg_channel *);
|
||||
|
@ -43,9 +46,6 @@ mapi_hfn_list_av1 chm_noctcp_hfnlist[] = {
|
|||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
static const char chm_noctcp_desc[] =
|
||||
"Adds channel mode +C, which blocks CTCP messages from a channel (except ACTION)";
|
||||
|
||||
static void
|
||||
chm_noctcp_process(hook_data_privmsg_channel *data)
|
||||
{
|
||||
|
|
|
@ -46,9 +46,10 @@
|
|||
#include "hostmask.h"
|
||||
#include "logger.h"
|
||||
|
||||
static const char ban_desc[] = "Provides the TS6 BAN command for propagating network-wide bans";
|
||||
|
||||
static int m_ban(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int ms_ban(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static const char ban_desc[] = "Provides the TS6 BAN command for propagating network-wide bans";
|
||||
|
||||
struct Message ban_msgtab = {
|
||||
"BAN", 0, 0, 0, 0,
|
||||
|
@ -56,6 +57,7 @@ struct Message ban_msgtab = {
|
|||
};
|
||||
|
||||
mapi_clist_av1 ban_clist[] = { &ban_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(ban, NULL, NULL, ban_clist, NULL, NULL, NULL, NULL, ban_desc);
|
||||
|
||||
static int
|
||||
|
|
|
@ -36,10 +36,11 @@
|
|||
#include "s_newconf.h"
|
||||
#include "hash.h"
|
||||
|
||||
static const char die_desc[] = "Provides the DIE command to allow an operator to shutdown a server";
|
||||
|
||||
static int mo_die(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_die(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int do_die(struct Client *, const char *);
|
||||
static const char die_desc[] = "Provides the DIE command to allow an operator to shutdown a server";
|
||||
|
||||
static struct Message die_msgtab = {
|
||||
"DIE", 0, 0, 0, 0,
|
||||
|
|
|
@ -33,6 +33,9 @@
|
|||
#include "logger.h"
|
||||
#include "s_conf.h"
|
||||
|
||||
static const char error_desc[] =
|
||||
"Provides the ERROR command for clients and servers";
|
||||
|
||||
static int m_error(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_error(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
|
@ -45,9 +48,6 @@ mapi_clist_av1 error_clist[] = {
|
|||
&error_msgtab, NULL
|
||||
};
|
||||
|
||||
static const char error_desc[] =
|
||||
"Provides the ERROR command for clients and servers";
|
||||
|
||||
DECLARE_MODULE_AV2(error, NULL, NULL, error_clist, NULL, NULL, NULL, NULL, error_desc);
|
||||
|
||||
/* Determine whether an ERROR message is safe to show (no IP address in it) */
|
||||
|
|
|
@ -42,10 +42,11 @@
|
|||
#include "ratelimit.h"
|
||||
#include "s_assert.h"
|
||||
|
||||
static const char join_desc[] = "Provides the JOIN and TS6 SJOIN commands to facilitate joining and creating channels";
|
||||
|
||||
static int m_join(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_join(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_sjoin(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char join_desc[] = "Provides the JOIN and TS6 SJOIN commands to facilitate joining and creating channels";
|
||||
|
||||
static int h_can_create_channel;
|
||||
static int h_channel_join;
|
||||
|
|
|
@ -37,9 +37,10 @@
|
|||
#include "s_serv.h"
|
||||
#include "hook.h"
|
||||
|
||||
static const char kick_desc[] = "Provides the KICK command to remove a user from a channel";
|
||||
|
||||
static int m_kick(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
#define mg_kick { m_kick, 3 }
|
||||
static const char kick_desc[] = "Provides the KICK command to remove a user from a channel";
|
||||
|
||||
struct Message kick_msgtab = {
|
||||
"KICK", 0, 0, 0, 0,
|
||||
|
@ -110,30 +111,10 @@ m_kick(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
|
|||
{
|
||||
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
||||
get_id(&me, source_p), get_id(source_p, source_p), name);
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Its a user doing a kick, but is not showing as chanop locally
|
||||
* its also not a user ON -my- server, and the channel has a TS.
|
||||
* There are two cases we can get to this point then...
|
||||
*
|
||||
* 1) connect burst is happening, and for some reason a legit
|
||||
* op has sent a KICK, but the SJOIN hasn't happened yet or
|
||||
* been seen. (who knows.. due to lag...)
|
||||
*
|
||||
* 2) The channel is desynced. That can STILL happen with TS
|
||||
*
|
||||
* Now, the old code roger wrote, would allow the KICK to
|
||||
* go through. Thats quite legit, but lets weird things like
|
||||
* KICKS by users who appear not to be chanopped happen,
|
||||
* or even neater, they appear not to be on the channel.
|
||||
* This fits every definition of a desync, doesn't it? ;-)
|
||||
* So I will allow the KICK, otherwise, things are MUCH worse.
|
||||
* But I will warn it as a possible desync.
|
||||
*
|
||||
* -Dianora
|
||||
*/
|
||||
}
|
||||
|
||||
if((p = strchr(parv[2], ',')))
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
#include "modules.h"
|
||||
#include "s_newconf.h"
|
||||
|
||||
static const char kill_desc[] = "Provides the KILL command to remove a user from the network";
|
||||
|
||||
static int h_can_kill;
|
||||
static char buf[BUFSIZE];
|
||||
|
||||
|
@ -45,7 +47,6 @@ static int ms_kill(struct MsgBuf *, struct Client *, struct Client *, int, const
|
|||
static int mo_kill(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static void relay_kill(struct Client *, struct Client *, struct Client *,
|
||||
const char *, const char *);
|
||||
static const char kill_desc[] = "Provides the KILL command to remove a user from the network";
|
||||
|
||||
struct Message kill_msgtab = {
|
||||
"KILL", 0, 0, 0, 0,
|
||||
|
|
|
@ -44,11 +44,12 @@
|
|||
#include "tgchange.h"
|
||||
#include "inline/stringops.h"
|
||||
|
||||
static const char message_desc[] =
|
||||
"Provides the PRIVMSG and NOTICE commands to send messages to users and channels";
|
||||
|
||||
static int m_message(enum message_type, struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int m_privmsg(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int m_notice(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char message_desc[] =
|
||||
"Provides the PRIVMSG and NOTICE commands to send messages to users and channels";
|
||||
|
||||
static void expire_tgchange(void *unused);
|
||||
static struct ev_entry *expire_tgchange_event;
|
||||
|
|
|
@ -40,6 +40,9 @@
|
|||
#include "packet.h"
|
||||
#include "s_newconf.h"
|
||||
|
||||
static const char mode_desc[] =
|
||||
"Provides the MODE and MLOCK client and server commands, and TS6 server-to-server TMODE and BMASK commands";
|
||||
|
||||
static int m_mode(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_mode(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_tmode(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -64,8 +67,6 @@ struct Message bmask_msgtab = {
|
|||
};
|
||||
|
||||
mapi_clist_av1 mode_clist[] = { &mode_msgtab, &tmode_msgtab, &mlock_msgtab, &bmask_msgtab, NULL };
|
||||
static const char mode_desc[] =
|
||||
"Provides the MODE and MLOCK client and server commands, and TS6 server-to-server TMODE and BMASK commands";
|
||||
|
||||
DECLARE_MODULE_AV2(mode, NULL, NULL, mode_clist, NULL, NULL, NULL, NULL, mode_desc);
|
||||
|
||||
|
|
|
@ -40,9 +40,10 @@
|
|||
#include "inline/stringops.h"
|
||||
#include "hook.h"
|
||||
|
||||
static int m_part(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char part_desc[] = "Provides the PART command to leave a channel";
|
||||
|
||||
static int m_part(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message part_msgtab = {
|
||||
"PART", 0, 0, 0, 0,
|
||||
{mg_unreg, {m_part, 2}, {m_part, 2}, mg_ignore, mg_ignore, {m_part, 2}}
|
||||
|
|
|
@ -34,9 +34,10 @@
|
|||
#include "s_conf.h"
|
||||
#include "inline/stringops.h"
|
||||
|
||||
static const char quit_desc[] = "Provides the QUIT command to allow a user to leave the network";
|
||||
|
||||
static int m_quit(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_quit(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char quit_desc[] = "Provides the QUIT command to allow a user to leave the network";
|
||||
|
||||
struct Message quit_msgtab = {
|
||||
"QUIT", 0, 0, 0, 0,
|
||||
|
|
|
@ -40,12 +40,12 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static int mr_server(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_server(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_sid(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char server_desc[] =
|
||||
"Provides the TS6 commands to introduce a new server to the network";
|
||||
|
||||
static int mr_server(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_server(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_sid(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
struct Message server_msgtab = {
|
||||
"SERVER", 0, 0, 0, 0,
|
||||
{{mr_server, 4}, mg_reg, mg_ignore, {ms_server, 4}, mg_ignore, mg_reg}
|
||||
|
|
|
@ -38,9 +38,10 @@
|
|||
#include "hash.h"
|
||||
#include "s_newconf.h"
|
||||
|
||||
static const char squit_desc[] = "Provides the SQUIT command to cause a server to quit";
|
||||
|
||||
static int ms_squit(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_squit(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char squit_desc[] = "Provides the SQUIT command to cause a server to quit";
|
||||
|
||||
struct Message squit_msgtab = {
|
||||
"SQUIT", 0, 0, 0, 0,
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char accept_desc[] =
|
||||
"Provides the ACCEPT command for use with Caller ID/user mode +g";
|
||||
|
||||
static int m_accept(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static void build_nicklist(struct Client *, char *, char *, const char *);
|
||||
|
||||
|
@ -48,8 +51,6 @@ struct Message accept_msgtab = {
|
|||
mapi_clist_av1 accept_clist[] = {
|
||||
&accept_msgtab, NULL
|
||||
};
|
||||
static const char accept_desc[] =
|
||||
"Provides the ACCEPT command for use with Caller ID/user mode +g";
|
||||
|
||||
DECLARE_MODULE_AV2(accept, NULL, NULL, accept_clist, NULL, NULL, NULL, NULL, accept_desc);
|
||||
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
#include "hook.h"
|
||||
#include "modules.h"
|
||||
|
||||
const char admin_desc[] =
|
||||
"Provides the ADMIN command to show server administrator information";
|
||||
|
||||
static int m_admin(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mr_admin(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_admin(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -54,9 +57,6 @@ mapi_hlist_av1 admin_hlist[] = {
|
|||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
const char admin_desc[] =
|
||||
"Provides the ADMIN command to show server administrator information";
|
||||
|
||||
DECLARE_MODULE_AV2(admin, NULL, NULL, admin_clist, admin_hlist, NULL, NULL, NULL, admin_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
#include "s_serv.h"
|
||||
#include "packet.h"
|
||||
|
||||
static const char away_desc[] = "Provides the AWAY command to set yourself away";
|
||||
|
||||
static int m_away(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message away_msgtab = {
|
||||
|
@ -44,8 +46,6 @@ struct Message away_msgtab = {
|
|||
|
||||
mapi_clist_av1 away_clist[] = { &away_msgtab, NULL };
|
||||
|
||||
static const char away_desc[] = "Provides the AWAY command to set yourself away";
|
||||
|
||||
DECLARE_MODULE_AV2(away, NULL, NULL, away_clist, NULL, NULL, NULL, NULL, away_desc);
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
#include "s_conf.h"
|
||||
#include "hash.h"
|
||||
|
||||
static const char cap_desc[] = "Provides the commands used for client capability negotiation";
|
||||
|
||||
typedef int (*bqcmp)(const void *, const void *);
|
||||
|
||||
static int m_cap(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -55,8 +57,6 @@ struct Message cap_msgtab = {
|
|||
|
||||
mapi_clist_av1 cap_clist[] = { &cap_msgtab, 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)
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char capab_desc[] = "Provides the commands used for server-to-server capability negotiation";
|
||||
|
||||
static int mr_capab(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_gcap(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
|
@ -45,8 +47,6 @@ struct Message gcap_msgtab = {
|
|||
|
||||
mapi_clist_av1 capab_clist[] = { &capab_msgtab, &gcap_msgtab, 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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -38,6 +38,9 @@
|
|||
#include "msg.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char certfp_desc[] =
|
||||
"Provides the CERTFP facility used by servers to set certificate fingerprints";
|
||||
|
||||
static int me_certfp(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message certfp_msgtab = {
|
||||
|
@ -47,9 +50,6 @@ struct Message certfp_msgtab = {
|
|||
|
||||
mapi_clist_av1 certfp_clist[] = { &certfp_msgtab, 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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -53,25 +53,25 @@
|
|||
#define CHALLENGE_SECRET_LENGTH 128 /* how long our challenge secret should be */
|
||||
|
||||
#ifndef HAVE_LIBCRYPTO
|
||||
|
||||
static const char challenge_desc[] = "Does nothing as OpenSSL was not enabled.";
|
||||
|
||||
/* Maybe this should be an error or something?-davidt */
|
||||
/* now it is -larne */
|
||||
static int challenge_load(void)
|
||||
static int challenge_load(void)
|
||||
{
|
||||
#ifndef STATIC_MODULES
|
||||
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||
"Challenge module not loaded because OpenSSL is not available.");
|
||||
ilog(L_MAIN, "Challenge module not loaded because OpenSSL is not available.");
|
||||
return -1;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
static const char challenge_desc[] =
|
||||
"Provides the challenge-response facility used for becoming an IRC operator";
|
||||
|
||||
static int m_challenge(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
/* We have openssl support, so include /CHALLENGE */
|
||||
|
@ -82,10 +82,6 @@ struct Message challenge_msgtab = {
|
|||
|
||||
mapi_clist_av1 challenge_clist[] = { &challenge_msgtab, 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);
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#include "whowas.h"
|
||||
#include "monitor.h"
|
||||
|
||||
static const char chghost_desc[] = "Provides commands used to change and retrieve client hostnames";
|
||||
|
||||
static int me_realhost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -45,8 +47,6 @@ struct Message chghost_msgtab = {
|
|||
|
||||
mapi_clist_av1 chghost_clist[] = { &chghost_msgtab, &realhost_msgtab, 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()
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char close_desc[] = "Provides the CLOSE command to clear all unfinished connections";
|
||||
|
||||
static int mo_close(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message close_msgtab = {
|
||||
|
@ -40,8 +42,6 @@ struct Message close_msgtab = {
|
|||
|
||||
mapi_clist_av1 close_clist[] = { &close_msgtab, 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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -42,6 +42,9 @@
|
|||
#include "packet.h"
|
||||
#include "supported.h"
|
||||
|
||||
static const char cmessage_desc[] =
|
||||
"Provides the CPRIVMSG and CNOTICE facilities for bypassing anti-spam measures";
|
||||
|
||||
static int m_cmessage(int, const char *, struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int m_cprivmsg(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int m_cnotice(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -73,9 +76,6 @@ struct Message cnotice_msgtab = {
|
|||
|
||||
mapi_clist_av1 cmessage_clist[] = { &cprivmsg_msgtab, &cnotice_msgtab, 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
|
||||
|
|
|
@ -38,6 +38,9 @@
|
|||
#include "modules.h"
|
||||
#include "sslproc.h"
|
||||
|
||||
static const char connect_desc[] =
|
||||
"Provides the CONNECT command to introduce servers to the network";
|
||||
|
||||
static int mo_connect(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_connect(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
|
@ -48,9 +51,6 @@ struct Message connect_msgtab = {
|
|||
|
||||
mapi_clist_av1 connect_clist[] = { &connect_msgtab, 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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
#include "bandbi.h"
|
||||
#include "operhash.h"
|
||||
|
||||
static const char dline_desc[] = "Provides the DLINE facility to ban users via IP address";
|
||||
|
||||
static int mo_dline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_dline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_undline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
|
|
@ -41,8 +41,10 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char encap_desc[] = "Provides the TS6 ENCAP facility";
|
||||
|
||||
static int ms_encap(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
|
||||
int parc, const char *parv[]);
|
||||
int parc, const char *parv[]);
|
||||
|
||||
struct Message encap_msgtab = {
|
||||
"ENCAP", 0, 0, 0, 0,
|
||||
|
@ -51,8 +53,6 @@ struct Message encap_msgtab = {
|
|||
|
||||
mapi_clist_av1 encap_clist[] = { &encap_msgtab, NULL };
|
||||
|
||||
static const char encap_desc[] = "Provides the TS6 ENCAP facility";
|
||||
|
||||
DECLARE_MODULE_AV2(encap, NULL, NULL, encap_clist, NULL, NULL, NULL, NULL, encap_desc);
|
||||
|
||||
/* ms_encap()
|
||||
|
|
|
@ -50,6 +50,9 @@
|
|||
#include "logger.h"
|
||||
#include "supported.h"
|
||||
|
||||
static const char etrace_desc[] =
|
||||
"Provides enhanced tracing facilities to opers (ETRACE, CHANTRACE, and MASKTRACE)";
|
||||
|
||||
static int mo_etrace(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_etrace(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int m_chantrace(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -84,9 +87,6 @@ _moddeinit(void)
|
|||
|
||||
mapi_clist_av1 etrace_clist[] = { &etrace_msgtab, &chantrace_msgtab, &masktrace_msgtab, NULL };
|
||||
|
||||
static const char etrace_desc[] =
|
||||
"Provides enhanced tracing facilities to opers (ETRACE, CHANTRACE, and MASKTRACE)";
|
||||
|
||||
DECLARE_MODULE_AV2(etrace, _modinit, _moddeinit, etrace_clist, NULL, NULL, NULL, NULL, etrace_desc);
|
||||
|
||||
static void do_etrace(struct Client *source_p, int ipv4, int ipv6);
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
#include "s_conf.h"
|
||||
#include "s_newconf.h"
|
||||
|
||||
static const char grant_desc[] =
|
||||
"Provides the grant facility for giving other users specific privilege sets";
|
||||
|
||||
static int mo_grant(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int me_grant(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
|
||||
|
@ -26,9 +29,6 @@ struct Message grant_msgtab = {
|
|||
|
||||
mapi_clist_av1 grant_clist[] = { &grant_msgtab, NULL };
|
||||
|
||||
static const char grant_desc[] =
|
||||
"Provides the grant facility for giving other users specific privilege sets";
|
||||
|
||||
DECLARE_MODULE_AV2(grant, NULL, NULL, grant_clist, NULL, NULL, NULL, NULL, grant_desc);
|
||||
|
||||
static int
|
||||
|
|
|
@ -36,6 +36,9 @@
|
|||
#include "cache.h"
|
||||
#include "rb_dictionary.h"
|
||||
|
||||
static const char help_desc[] =
|
||||
"Provides the help facility for commands, modes, and server concepts";
|
||||
|
||||
static int m_help(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_help(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_uhelp(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -52,9 +55,6 @@ struct Message uhelp_msgtab = {
|
|||
|
||||
mapi_clist_av1 help_clist[] = { &help_msgtab, &uhelp_msgtab, NULL };
|
||||
|
||||
static const char help_desc[] =
|
||||
"Provides the help facility for commands, modes, and server concepts";
|
||||
|
||||
DECLARE_MODULE_AV2(help, NULL, NULL, help_clist, NULL, NULL, NULL, NULL, help_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -39,6 +39,9 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char info_desc[] =
|
||||
"Provides the INFO command for retrieving server copyright, credits, and other info";
|
||||
|
||||
static void send_conf_options(struct Client *source_p);
|
||||
static void send_birthdate_online_time(struct Client *source_p);
|
||||
static void send_info_text(struct Client *source_p);
|
||||
|
@ -60,9 +63,6 @@ mapi_hlist_av1 info_hlist[] = {
|
|||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
static const char info_desc[] =
|
||||
"Provides the INFO command for retrieving server copyright, credits, and other info";
|
||||
|
||||
DECLARE_MODULE_AV2(info, NULL, NULL, info_clist, info_hlist, NULL, NULL, NULL, info_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -39,9 +39,10 @@
|
|||
#include "packet.h"
|
||||
#include "tgchange.h"
|
||||
|
||||
static const char invite_desc[] = "Provides facilities for invite and related notifications";
|
||||
|
||||
static int m_invite(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static unsigned int CAP_INVITE_NOTIFY = 0;
|
||||
static const char invite_desc[] = "Provides facilities for invite and related notifications";
|
||||
|
||||
struct Message invite_msgtab = {
|
||||
"INVITE", 0, 0, 0, 0,
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
static const char ison_desc[] = "Provides the ISON command to check if a set of users is online";
|
||||
|
||||
static int m_ison(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message ison_msgtab = {
|
||||
|
@ -46,8 +48,6 @@ struct Message ison_msgtab = {
|
|||
|
||||
mapi_clist_av1 ison_clist[] = { &ison_msgtab, NULL };
|
||||
|
||||
static const char ison_desc[] = "Provides the ISON command to check if a set of users is online";
|
||||
|
||||
DECLARE_MODULE_AV2(ison, NULL, NULL, ison_clist, NULL, NULL, NULL, NULL, ison_desc);
|
||||
|
||||
static char buf[BUFSIZE];
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
#include "bandbi.h"
|
||||
#include "operhash.h"
|
||||
|
||||
static const char kline_desc[] = "Provides the KLINE facility to ban users via hostmask";
|
||||
|
||||
static int mo_kline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_kline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_kline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -63,8 +65,6 @@ struct Message unkline_msgtab = {
|
|||
|
||||
mapi_clist_av1 kline_clist[] = { &kline_msgtab, &unkline_msgtab, NULL };
|
||||
|
||||
static const char kline_desc[] = "Provides the KLINE facility to ban users via hostmask";
|
||||
|
||||
DECLARE_MODULE_AV2(kline, NULL, NULL, kline_clist, NULL, NULL, NULL, NULL, kline_desc);
|
||||
|
||||
/* Local function prototypes */
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
#include "s_serv.h"
|
||||
#include "supported.h"
|
||||
|
||||
static const char knock_desc[] = "Provides the KNOCK command to ask for an invite to an invite-only channel";
|
||||
|
||||
static int m_knock(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message knock_msgtab = {
|
||||
|
@ -58,8 +60,6 @@ _moddeinit(void)
|
|||
|
||||
mapi_clist_av1 knock_clist[] = { &knock_msgtab, NULL };
|
||||
|
||||
static const char knock_desc[] = "Provides the KNOCK command to ask for an invite to an invite-only channel";
|
||||
|
||||
DECLARE_MODULE_AV2(knock, _modinit, _moddeinit, knock_clist, NULL, NULL, NULL, NULL, knock_desc);
|
||||
|
||||
/* m_knock
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
#include "scache.h"
|
||||
#include "s_assert.h"
|
||||
|
||||
static const char links_desc[] =
|
||||
"Provides the LINKS command to view servers linked to the host server";
|
||||
|
||||
static int m_links(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_links(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static char * clean_string(char *dest, const unsigned char *src, size_t len);
|
||||
|
@ -54,9 +57,6 @@ mapi_hlist_av1 links_hlist[] = {
|
|||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
static const char links_desc[] =
|
||||
"Provides the LINKS command to view servers linked to the host server";
|
||||
|
||||
DECLARE_MODULE_AV2(links, NULL, NULL, links_clist, links_hlist, NULL, NULL, NULL, links_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -51,6 +51,8 @@
|
|||
#include "logger.h"
|
||||
#include "rb_radixtree.h"
|
||||
|
||||
static const char list_desc[] = "Provides the LIST command to clients to view non-hidden channels";
|
||||
|
||||
static rb_dlink_list safelisting_clients = { NULL, NULL, 0 };
|
||||
|
||||
static int _modinit(void);
|
||||
|
@ -81,8 +83,6 @@ mapi_hfn_list_av1 list_hfnlist[] = {
|
|||
{NULL, NULL}
|
||||
};
|
||||
|
||||
static const char list_desc[] = "Provides the LIST command to clients to view non-hidden channels";
|
||||
|
||||
DECLARE_MODULE_AV2(list, _modinit, _moddeinit, list_clist, NULL, list_hfnlist, NULL, NULL, list_desc);
|
||||
|
||||
static struct ev_entry *iterate_clients_ev = NULL;
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
#include "modules.h"
|
||||
#include "s_serv.h"
|
||||
|
||||
static const char locops_desc[] =
|
||||
"Provides the LOCOPS command to send a message to all local operators";
|
||||
|
||||
static int m_locops(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_locops(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_locops(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -48,9 +51,6 @@ struct Message locops_msgtab = {
|
|||
|
||||
mapi_clist_av1 locops_clist[] = { &locops_msgtab, NULL };
|
||||
|
||||
static const char locops_desc[] =
|
||||
"Provides the LOCOPS command to send a message to all local operators";
|
||||
|
||||
DECLARE_MODULE_AV2(locops, NULL, NULL, locops_clist, NULL, NULL, NULL, NULL, locops_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char lusers_desc[] =
|
||||
"Provides the LUSERS command to view the number of current and maximum lusers on a server";
|
||||
|
||||
static int m_lusers(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_lusers(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
|
@ -44,9 +47,6 @@ struct Message lusers_msgtab = {
|
|||
|
||||
mapi_clist_av1 lusers_clist[] = { &lusers_msgtab, NULL };
|
||||
|
||||
static const char lusers_desc[] =
|
||||
"Provides the LUSERS command to view the number of current and maximum lusers on a server";
|
||||
|
||||
DECLARE_MODULE_AV2(lusers, NULL, NULL, lusers_clist, NULL, NULL, NULL, NULL, lusers_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
#define USER_COL 50 /* display | Users: %d at col 50 */
|
||||
|
||||
static const char map_desc[] = "Provides the MAP command to view network topology information";
|
||||
|
||||
static int m_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int mo_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
|
||||
|
@ -40,8 +42,6 @@ struct Message map_msgtab = {
|
|||
|
||||
mapi_clist_av1 map_clist[] = { &map_msgtab, NULL };
|
||||
|
||||
static const char map_desc[] = "Provides the MAP command to view network topology information";
|
||||
|
||||
DECLARE_MODULE_AV2(map, NULL, NULL, map_clist, NULL, NULL, NULL, NULL, map_desc);
|
||||
|
||||
static void dump_map(struct Client *client_p, struct Client *root, char *pbuf);
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
#include "send.h"
|
||||
#include "supported.h"
|
||||
|
||||
static const char monitor_desc[] = "Provides the MONITOR facility for tracking user signon and signoff";
|
||||
|
||||
static int monitor_init(void);
|
||||
static void monitor_deinit(void);
|
||||
static int m_monitor(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
@ -50,8 +52,6 @@ struct Message monitor_msgtab = {
|
|||
|
||||
mapi_clist_av1 monitor_clist[] = { &monitor_msgtab, NULL };
|
||||
|
||||
static const char monitor_desc[] = "Provides the MONITOR facility for tracking user signon and signoff";
|
||||
|
||||
DECLARE_MODULE_AV2(monitor, monitor_init, monitor_deinit, monitor_clist, NULL, NULL, NULL, NULL, monitor_desc);
|
||||
|
||||
static int monitor_init(void)
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
#include "cache.h"
|
||||
#include "ratelimit.h"
|
||||
|
||||
static const char motd_desc[] = "Provides the MOTD command to view the Message of the Day";
|
||||
|
||||
static int m_motd(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_motd(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
|
@ -52,8 +54,6 @@ mapi_hlist_av1 motd_hlist[] = {
|
|||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
static const char motd_desc[] = "Provides the MOTD command to view the Message of the Day";
|
||||
|
||||
DECLARE_MODULE_AV2(motd, NULL, NULL, motd_clist, motd_hlist, NULL, NULL, NULL, motd_desc);
|
||||
|
||||
static void motd_spy(struct Client *);
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char names_desc[] = "Provides the NAMES command to view users on a channel";
|
||||
|
||||
static int m_names(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message names_msgtab = {
|
||||
|
@ -46,8 +48,6 @@ struct Message names_msgtab = {
|
|||
|
||||
mapi_clist_av1 names_clist[] = { &names_msgtab, NULL };
|
||||
|
||||
static const char names_desc[] = "Provides the NAMES command to view users on a channel";
|
||||
|
||||
DECLARE_MODULE_AV2(names, NULL, NULL, names_clist, NULL, NULL, NULL, NULL, names_desc);
|
||||
|
||||
static void names_global(struct Client *source_p);
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
#include "packet.h"
|
||||
#include "cache.h"
|
||||
|
||||
static const char oper_desc[] = "Provides the OPER command to become an IRC operator";
|
||||
|
||||
static int m_oper(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message oper_msgtab = {
|
||||
|
@ -48,8 +50,6 @@ struct Message oper_msgtab = {
|
|||
|
||||
mapi_clist_av1 oper_clist[] = { &oper_msgtab, NULL };
|
||||
|
||||
static const char oper_desc[] = "Provides the OPER command to become an IRC operator";
|
||||
|
||||
DECLARE_MODULE_AV2(oper, NULL, NULL, oper_clist, NULL, NULL, NULL, NULL, oper_desc);
|
||||
|
||||
static int match_oper_password(const char *password, struct oper_conf *oper_p);
|
||||
|
|
|
@ -42,8 +42,11 @@
|
|||
#include "modules.h"
|
||||
#include "logger.h"
|
||||
|
||||
static const char operspy_desc[] =
|
||||
"Provides the operspy facility for viewing normally private data";
|
||||
|
||||
static int ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
|
||||
int parc, const char *parv[]);
|
||||
int parc, const char *parv[]);
|
||||
|
||||
struct Message operspy_msgtab = {
|
||||
"OPERSPY", 0, 0, 0, 0,
|
||||
|
@ -52,9 +55,6 @@ struct Message operspy_msgtab = {
|
|||
|
||||
mapi_clist_av1 operspy_clist[] = { &operspy_msgtab, NULL };
|
||||
|
||||
static const char operspy_desc[] =
|
||||
"Provides the operspy facility for viewing normally private data";
|
||||
|
||||
DECLARE_MODULE_AV2(operspy, NULL, NULL, operspy_clist, NULL, NULL, NULL, NULL, operspy_desc);
|
||||
|
||||
/* ms_operspy()
|
||||
|
|
|
@ -35,15 +35,17 @@
|
|||
#include "hash.h"
|
||||
#include "s_conf.h"
|
||||
|
||||
static int mr_pass(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char pass_desc[] = "Provides the PASS command to authenticate clients and servers";
|
||||
|
||||
static int mr_pass(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message pass_msgtab = {
|
||||
"PASS", 0, 0, 0, 0,
|
||||
{{mr_pass, 2}, mg_reg, mg_ignore, mg_ignore, mg_ignore, mg_reg}
|
||||
};
|
||||
|
||||
mapi_clist_av1 pass_clist[] = { &pass_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(pass, NULL, NULL, pass_clist, NULL, NULL, NULL, NULL, pass_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -35,17 +35,19 @@
|
|||
#include "s_conf.h"
|
||||
#include "s_serv.h"
|
||||
|
||||
static int m_ping(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_ping(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char ping_desc[] =
|
||||
"Provides the PING command to ensure a client or server is still alive";
|
||||
|
||||
static int m_ping(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_ping(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message ping_msgtab = {
|
||||
"PING", 0, 0, 0, 0,
|
||||
{mg_unreg, {m_ping, 2}, {ms_ping, 2}, {ms_ping, 2}, mg_ignore, {m_ping, 2}}
|
||||
};
|
||||
|
||||
mapi_clist_av1 ping_clist[] = { &ping_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(ping, NULL, NULL, ping_clist, NULL, NULL, NULL, NULL, ping_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -38,9 +38,10 @@
|
|||
#include "hash.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char pong_desc[] = "Provides the PONG command to respond to a PING message";
|
||||
|
||||
static int mr_pong(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_pong(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char pong_desc[] = "Provides the PONG command to respond to a PING message";
|
||||
|
||||
struct Message pong_msgtab = {
|
||||
"PONG", 0, 0, 0, 0,
|
||||
|
@ -48,6 +49,7 @@ struct Message pong_msgtab = {
|
|||
};
|
||||
|
||||
mapi_clist_av1 pong_clist[] = { &pong_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(pong, NULL, NULL, pong_clist, NULL, NULL, NULL, NULL, pong_desc);
|
||||
|
||||
static int
|
||||
|
|
|
@ -33,10 +33,11 @@
|
|||
#include "modules.h"
|
||||
#include "s_conf.h"
|
||||
|
||||
static int mr_dumb_proxy(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char post_desc[] =
|
||||
"Ensure Web forms/proxies cannot connect by disconnecting on POST, GET, and PUT";
|
||||
|
||||
static int mr_dumb_proxy(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message post_msgtab = {
|
||||
"POST", 0, 0, 0, 0,
|
||||
{{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore}
|
||||
|
@ -50,7 +51,6 @@ struct Message put_msgtab = {
|
|||
{{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore}
|
||||
};
|
||||
|
||||
|
||||
mapi_clist_av1 post_clist[] = {
|
||||
&post_msgtab, &get_msgtab, &put_msgtab, NULL
|
||||
};
|
||||
|
|
|
@ -40,10 +40,11 @@
|
|||
#include "s_conf.h"
|
||||
#include "s_newconf.h"
|
||||
|
||||
static const char privs_desc[] = "Provides the PRIVS command to inspect an operator's privileges";
|
||||
|
||||
static int m_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int me_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int mo_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static const char privs_desc[] = "Provides the PRIVS command to inspect an operator's privileges";
|
||||
|
||||
struct Message privs_msgtab = {
|
||||
"PRIVS", 0, 0, 0, 0,
|
||||
|
|
|
@ -44,17 +44,19 @@
|
|||
#include "rb_radixtree.h"
|
||||
#include "sslproc.h"
|
||||
|
||||
static int mo_rehash(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_rehash(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char rehash_desc[] =
|
||||
"Provides the REHASH command to reload configuration and other files";
|
||||
|
||||
static int mo_rehash(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_rehash(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message rehash_msgtab = {
|
||||
"REHASH", 0, 0, 0, 0,
|
||||
{mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_rehash, 0}, {mo_rehash, 0}}
|
||||
};
|
||||
|
||||
mapi_clist_av1 rehash_clist[] = { &rehash_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(rehash, NULL, NULL, rehash_clist, NULL, NULL, NULL, NULL, rehash_desc);
|
||||
|
||||
struct hash_commands
|
||||
|
|
|
@ -38,10 +38,11 @@
|
|||
#include "modules.h"
|
||||
#include "hash.h"
|
||||
|
||||
static const char restart_desc[] = "Provides the RESTART command to restart the server";
|
||||
|
||||
static int mo_restart(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_restart(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int do_restart(struct Client *source_p, const char *servername);
|
||||
static const char restart_desc[] = "Provides the RESTART command to restart the server";
|
||||
|
||||
struct Message restart_msgtab = {
|
||||
"RESTART", 0, 0, 0, 0,
|
||||
|
@ -49,6 +50,7 @@ struct Message restart_msgtab = {
|
|||
};
|
||||
|
||||
mapi_clist_av1 restart_clist[] = { &restart_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(restart, NULL, NULL, restart_clist, NULL, NULL, NULL, NULL, restart_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -38,14 +38,15 @@
|
|||
#include "bandbi.h"
|
||||
#include "operhash.h"
|
||||
|
||||
static const char resv_desc[] =
|
||||
"Provides management of reserved nicknames and channels using (UN)RESV";
|
||||
|
||||
static int mo_resv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_resv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_resv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char resv_desc[] =
|
||||
"Provides management of reserved nicknames and channels using (UN)RESV";
|
||||
|
||||
struct Message resv_msgtab = {
|
||||
"RESV", 0, 0, 0, 0,
|
||||
|
|
|
@ -41,10 +41,11 @@
|
|||
#include "s_newconf.h"
|
||||
#include "s_conf.h"
|
||||
|
||||
static const char sasl_desc[] = "Provides SASL authentication support";
|
||||
|
||||
static int m_authenticate(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_sasl(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_mechlist(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char sasl_desc[] = "Provides SASL authentication support";
|
||||
|
||||
static void abort_sasl(struct Client *);
|
||||
static void abort_sasl_exit(hook_data_client_exit *);
|
||||
|
|
|
@ -49,18 +49,19 @@
|
|||
#include "modules.h"
|
||||
#include "logger.h"
|
||||
|
||||
static int mo_scan(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int scan_umodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
/*static int scan_cmodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **);*/
|
||||
static const char scan_desc[] =
|
||||
"Provides the SCAN command to show users that have a mode set or cleared";
|
||||
|
||||
static int mo_scan(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int scan_umodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message scan_msgtab = {
|
||||
"SCAN", 0, 0, 0, 0,
|
||||
{mg_ignore, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_scan, 2}}
|
||||
};
|
||||
|
||||
mapi_clist_av1 scan_clist[] = { &scan_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(scan, NULL, NULL, scan_clist, NULL, NULL, NULL, NULL, scan_desc);
|
||||
|
||||
typedef int (*scan_handler)(struct MsgBuf *, struct Client *, struct Client *, int,
|
||||
|
|
|
@ -47,6 +47,8 @@
|
|||
#include "monitor.h"
|
||||
#include "supported.h"
|
||||
|
||||
static const char services_desc[] = "Provides support for running a services daemon";
|
||||
|
||||
static int _modinit(void);
|
||||
static void _moddeinit(void);
|
||||
|
||||
|
@ -58,8 +60,6 @@ static int me_login(struct MsgBuf *, struct Client *, struct Client *, int, cons
|
|||
static int me_rsfnc(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int me_nickdelay(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
static const char services_desc[] = "Provides support for running a services daemon";
|
||||
|
||||
static void h_svc_server_introduced(hook_data_client *);
|
||||
static void h_svc_whois(hook_data_client *);
|
||||
static void h_svc_stats(hook_data_int *);
|
||||
|
|
|
@ -39,9 +39,10 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static int mo_set(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char set_desc[] = "Provides the SET command to change server parameters";
|
||||
|
||||
static int mo_set(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message set_msgtab = {
|
||||
"SET", 0, 0, 0, 0,
|
||||
{mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_set, 0}}
|
||||
|
|
|
@ -49,9 +49,10 @@
|
|||
#include "match.h"
|
||||
#include "s_user.h"
|
||||
|
||||
static const char signon_desc[] = "Provides account login/logout support for services";
|
||||
|
||||
static int me_svslogin(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_signon(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char signon_desc[] = "Provides account login/logout support for services";
|
||||
|
||||
static void send_signon(struct Client *, struct Client *, const char *, const char *, const char *, unsigned int, const char *);
|
||||
|
||||
|
|
|
@ -48,15 +48,17 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static int me_snote(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char snote_desc[] = "Provides server notices via the SNOTE command";
|
||||
|
||||
static void me_snote(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message snote_msgtab = {
|
||||
"SNOTE", 0, 0, 0, 0,
|
||||
{mg_ignore, mg_not_oper, mg_ignore, mg_ignore, {me_snote, 3}, mg_ignore}
|
||||
};
|
||||
|
||||
mapi_clist_av1 snote_clist[] = { &snote_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(snote, NULL, NULL, snote_clist, NULL, NULL, NULL, NULL, snote_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,9 +33,10 @@
|
|||
#include "s_serv.h"
|
||||
#include "logger.h"
|
||||
|
||||
static int mr_starttls(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char starttls_desc[] = "Provides the tls CAP and STARTTLS command";
|
||||
|
||||
static int mr_starttls(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message starttls_msgtab = {
|
||||
"STARTTLS", 0, 0, 0, 0,
|
||||
{{mr_starttls, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore}
|
||||
|
@ -51,7 +52,9 @@ mapi_cap_list_av2 starttls_cap_list[] = {
|
|||
{ 0, NULL, NULL, NULL }
|
||||
};
|
||||
#else /* HAVE_LIBCRYPTO */
|
||||
|
||||
mapi_cap_list_av2 starttls_cap_list[] = { { 0, NULL, NULL, NULL } };
|
||||
|
||||
#endif /* HAVE_LIBCRYPTO */
|
||||
|
||||
DECLARE_MODULE_AV2(starttls, NULL, NULL, starttls_clist, NULL, NULL, starttls_cap_list, NULL, starttls_desc);
|
||||
|
|
|
@ -49,10 +49,11 @@
|
|||
#include "rb_radixtree.h"
|
||||
#include "sslproc.h"
|
||||
|
||||
static int m_stats (struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char stats_desc[] =
|
||||
"Provides the STATS command to inspect various server/network information";
|
||||
|
||||
static int m_stats (struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message stats_msgtab = {
|
||||
"STATS", 0, 0, 0, 0,
|
||||
{mg_unreg, {m_stats, 2}, {m_stats, 3}, mg_ignore, mg_ignore, {m_stats, 2}}
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static int ms_svinfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char svinfo_desc[] =
|
||||
"Provides TS6 SVINFO command to ensure version and clock synchronisation";
|
||||
|
||||
static int ms_svinfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
struct Message svinfo_msgtab = {
|
||||
"SVINFO", 0, 0, 0, 0,
|
||||
{mg_unreg, mg_ignore, mg_ignore, {ms_svinfo, 5}, mg_ignore, mg_ignore}
|
||||
|
|
|
@ -42,11 +42,12 @@
|
|||
#include "hash.h"
|
||||
#include "s_serv.h"
|
||||
|
||||
static int ms_tb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int ms_etb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static const char tb_desc[] =
|
||||
"Provides TS6 TB and ETB commands for topic bursting between servers";
|
||||
|
||||
static int ms_tb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int ms_etb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
|
||||
struct Message tb_msgtab = {
|
||||
"TB", 0, 0, 0, 0,
|
||||
{mg_unreg, mg_ignore, mg_ignore, {ms_tb, 4}, mg_ignore, mg_ignore}
|
||||
|
|
|
@ -39,9 +39,10 @@
|
|||
#include "s_newconf.h"
|
||||
#include "reject.h"
|
||||
|
||||
static const char testline_desc[] = "Provides the ability to test I/K/D/X lines and RESVs";
|
||||
|
||||
static int mo_testline(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_testgecos(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char testline_desc[] = "Provides the ability to test I/K/D/X lines and RESVs";
|
||||
|
||||
struct Message testline_msgtab = {
|
||||
"TESTLINE", 0, 0, 0, 0,
|
||||
|
@ -53,6 +54,7 @@ struct Message testgecos_msgtab = {
|
|||
};
|
||||
|
||||
mapi_clist_av1 testline_clist[] = { &testline_msgtab, &testgecos_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(testline, NULL, NULL, testline_clist, NULL, NULL, NULL, NULL, testline_desc);
|
||||
|
||||
static int
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static int mo_testmask(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
|
||||
static void mo_testmask(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
|
||||
int parc, const char *parv[]);
|
||||
static const char testmask_desc[] =
|
||||
"Provides the TESTMASK command to show the number of clients matching a hostmask or GECOS";
|
||||
|
|
|
@ -39,9 +39,10 @@
|
|||
#include "modules.h"
|
||||
#include "s_newconf.h" /* add_tgchange */
|
||||
|
||||
static int me_tginfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char tginfo_desc[] = "Processes target change notifications from other servers";
|
||||
|
||||
static int me_tginfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message tginfo_msgtab = {
|
||||
"TGINFO", 0, 0, 0, 0,
|
||||
{mg_unreg, mg_ignore, mg_ignore, mg_ignore, {me_tginfo, 2}, mg_ignore}
|
||||
|
|
|
@ -41,11 +41,12 @@
|
|||
#include "logger.h"
|
||||
#include "inline/stringops.h"
|
||||
|
||||
static int m_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char topic_desc[] =
|
||||
"Provides the TOPIC command to set, remove, and inspect channel topics";
|
||||
|
||||
static int m_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message topic_msgtab = {
|
||||
"TOPIC", 0, 0, 0, 0,
|
||||
{mg_unreg, {m_topic, 2}, {m_topic, 2}, {ms_topic, 5}, mg_ignore, {m_topic, 2}}
|
||||
|
|
|
@ -40,10 +40,11 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static int m_trace(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char trace_desc[] =
|
||||
"Provides the TRACE command to trace the route to a client or server";
|
||||
|
||||
static int m_trace(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
static void trace_spy(struct Client *, struct Client *);
|
||||
|
||||
struct Message trace_msgtab = {
|
||||
|
|
|
@ -36,10 +36,11 @@
|
|||
#include "blacklist.h"
|
||||
#include "s_assert.h"
|
||||
|
||||
static int mr_user(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char user_desc[] =
|
||||
"Provides the USER command to register a new connection";
|
||||
|
||||
static int mr_user(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message user_msgtab = {
|
||||
"USER", 0, 0, 0, 0,
|
||||
{{mr_user, 5}, mg_reg, mg_ignore, mg_ignore, mg_ignore, mg_reg}
|
||||
|
|
|
@ -34,11 +34,12 @@
|
|||
#include "modules.h"
|
||||
#include "s_conf.h"
|
||||
|
||||
static const char userhost_desc[] =
|
||||
"Provides the USERHOST command to show a user's host";
|
||||
|
||||
static char buf[BUFSIZE];
|
||||
|
||||
static int m_userhost(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char userhost_desc[] =
|
||||
"Provides the USERHOST command to show a user's host";
|
||||
|
||||
struct Message userhost_msgtab = {
|
||||
"USERHOST", 0, 0, 0, 0,
|
||||
|
@ -46,6 +47,7 @@ struct Message userhost_msgtab = {
|
|||
};
|
||||
|
||||
mapi_clist_av1 userhost_clist[] = { &userhost_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(userhost, NULL, NULL, userhost_clist, NULL, NULL, NULL, NULL, userhost_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,16 +33,18 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static int m_users(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char users_desc[] =
|
||||
"Provides the USERS command to display connection statistics locally and globally";
|
||||
|
||||
static int m_users(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message users_msgtab = {
|
||||
"USERS", 0, 0, 0, 0,
|
||||
{mg_unreg, {m_users, 0}, {m_users, 0}, mg_ignore, mg_ignore, {m_users, 0}}
|
||||
};
|
||||
|
||||
mapi_clist_av1 users_clist[] = { &users_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(users, NULL, NULL, users_clist, NULL, NULL, NULL, NULL, users_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -34,12 +34,13 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static const char version_desc[] =
|
||||
"Provides the VERSION command to display server version information";
|
||||
|
||||
static char *confopts(void);
|
||||
|
||||
static int m_version(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int mo_version(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char version_desc[] =
|
||||
"Provides the VERSION command to display server version information";
|
||||
|
||||
struct Message version_msgtab = {
|
||||
"VERSION", 0, 0, 0, 0,
|
||||
|
@ -47,6 +48,7 @@ struct Message version_msgtab = {
|
|||
};
|
||||
|
||||
mapi_clist_av1 version_clist[] = { &version_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(version, NULL, NULL, version_clist, NULL, NULL, NULL, NULL, version_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,11 +36,12 @@
|
|||
#include "modules.h"
|
||||
#include "s_serv.h"
|
||||
|
||||
static const char wallops_desc[] =
|
||||
"Provides the WALLOPS and OPERWALL commands to message online operators";
|
||||
|
||||
static int mo_operwall(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_operwall(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_wallops(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char wallops_desc[] =
|
||||
"Provides the WALLOPS and OPERWALL commands to message online operators";
|
||||
|
||||
struct Message wallops_msgtab = {
|
||||
"WALLOPS", 0, 0, 0, 0,
|
||||
|
@ -52,6 +53,7 @@ struct Message operwall_msgtab = {
|
|||
};
|
||||
|
||||
mapi_clist_av1 wallops_clist[] = { &wallops_msgtab, &operwall_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(wallops, NULL, NULL, wallops_clist, NULL, NULL, NULL, NULL, wallops_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -55,6 +55,9 @@
|
|||
#define FIELD_ACCOUNT 0x0800
|
||||
#define FIELD_OPLEVEL 0x1000 /* meaningless and stupid, but whatever */
|
||||
|
||||
static const char who_desc[] =
|
||||
"Provides the WHO command to display information for users on a channel";
|
||||
|
||||
struct who_format
|
||||
{
|
||||
int fields;
|
||||
|
@ -62,8 +65,6 @@ struct who_format
|
|||
};
|
||||
|
||||
static int m_who(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char who_desc[] =
|
||||
"Provides the WHO command to display information for users on a channel";
|
||||
|
||||
struct Message who_msgtab = {
|
||||
"WHO", 0, 0, 0, 0,
|
||||
|
|
|
@ -45,13 +45,14 @@
|
|||
#include "ratelimit.h"
|
||||
#include "s_assert.h"
|
||||
|
||||
static const char whois_desc[] =
|
||||
"Provides the WHOIS command to display information about a user";
|
||||
|
||||
static void do_whois(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static void single_whois(struct Client *source_p, struct Client *target_p, int operspy);
|
||||
|
||||
static int m_whois(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static int ms_whois(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char whois_desc[] =
|
||||
"Provides the WHOIS command to display information about a user";
|
||||
|
||||
struct Message whois_msgtab = {
|
||||
"WHOIS", 0, 0, 0, 0,
|
||||
|
|
|
@ -39,16 +39,18 @@
|
|||
#include "parse.h"
|
||||
#include "modules.h"
|
||||
|
||||
static int m_whowas(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
static const char whowas_desc[] =
|
||||
"Provides the WHOWAS command to display information on a disconnected user";
|
||||
|
||||
static int m_whowas(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
|
||||
|
||||
struct Message whowas_msgtab = {
|
||||
"WHOWAS", 0, 0, 0, 0,
|
||||
{mg_unreg, {m_whowas, 2}, {m_whowas, 4}, mg_ignore, mg_ignore, {m_whowas, 2}}
|
||||
};
|
||||
|
||||
mapi_clist_av1 whowas_clist[] = { &whowas_msgtab, NULL };
|
||||
|
||||
DECLARE_MODULE_AV2(whowas, NULL, NULL, whowas_clist, NULL, NULL, NULL, NULL, whowas_desc);
|
||||
|
||||
/*
|
||||
|
|
|
@ -51,6 +51,9 @@
|
|||
#include "bandbi.h"
|
||||
#include "operhash.h"
|
||||
|
||||
static const char xline_desc[] =
|
||||
"Provides management of GECOS bans via (UN)XLINE command";
|
||||
|
||||
static int mo_xline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int ms_xline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
static int me_xline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||
|
@ -60,8 +63,20 @@ static int ms_unxline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct C
|
|||
const char *parv[]);
|
||||
static int me_unxline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc,
|
||||
const char *parv[]);
|
||||
static const char xline_desc[] =
|
||||
"Provides management of GECOS bans via (UN)XLINE command";
|
||||
|
||||
static int valid_xline(struct Client *, const char *, const char *);
|
||||
static void apply_xline(struct Client *client_p, const char *name,
|
||||
const char *reason, int temp_time, int propagated);
|
||||
static void propagate_xline(struct Client *source_p, const char *target,
|
||||
int temp_time, const char *name, const char *type, const char *reason);
|
||||
static void cluster_xline(struct Client *source_p, int temp_time,
|
||||
const char *name, const char *reason);
|
||||
|
||||
static void handle_remote_xline(struct Client *source_p, int temp_time,
|
||||
const char *name, const char *reason);
|
||||
static void handle_remote_unxline(struct Client *source_p, const char *name);
|
||||
static void remove_xline(struct Client *source_p, const char *name,
|
||||
int propagated);
|
||||
|
||||
struct Message xline_msgtab = {
|
||||
"XLINE", 0, 0, 0, 0,
|
||||
|
@ -77,22 +92,6 @@ mapi_clist_av1 xline_clist[] = { &xline_msgtab, &unxline_msgtab, NULL };
|
|||
|
||||
DECLARE_MODULE_AV2(xline, NULL, NULL, xline_clist, NULL, NULL, NULL, NULL, xline_desc);
|
||||
|
||||
static int valid_xline(struct Client *, const char *, const char *);
|
||||
static void apply_xline(struct Client *client_p, const char *name,
|
||||
const char *reason, int temp_time, int propagated);
|
||||
static void propagate_xline(struct Client *source_p, const char *target,
|
||||
int temp_time, const char *name, const char *type, const char *reason);
|
||||
static void cluster_xline(struct Client *source_p, int temp_time,
|
||||
const char *name, const char *reason);
|
||||
|
||||
static void handle_remote_xline(struct Client *source_p, int temp_time,
|
||||
const char *name, const char *reason);
|
||||
static void handle_remote_unxline(struct Client *source_p, const char *name);
|
||||
|
||||
static void remove_xline(struct Client *source_p, const char *name,
|
||||
int propagated);
|
||||
|
||||
|
||||
/* m_xline()
|
||||
*
|
||||
* parv[1] - thing to xline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue