"KDX-Line active for" is now L_NETWIDE, so remove sno_globalkline

This commit is contained in:
jesopo 2021-04-05 11:34:34 +00:00 committed by Ed Kellett
parent 36828ff720
commit 72b1dbd4bf
7 changed files with 0 additions and 71 deletions

View File

@ -29,7 +29,6 @@
#loadmodule "extensions/m_locops";
#loadmodule "extensions/no_oper_invis";
#loadmodule "extensions/sno_farconnect";
#loadmodule "extensions/sno_globalkline";
#loadmodule "extensions/sno_globalnickchange";
#loadmodule "extensions/sno_globaloper";
#loadmodule "extensions/override";

View File

@ -70,7 +70,6 @@
* /locops support -- m_locops
* Opers cannot be invisible (umode +i) -- no_oper_invis
* Far connection notices (snomask +F) -- sno_farconnect
* Remote k/d/x line active notices -- sno_globalkline
* Remote oper up notices -- sno_globaloper
* Global nick-change notices -- sno_globalnickchange
* /whois notifications (snomask +W) -- sno_whois
@ -104,7 +103,6 @@
#loadmodule "extensions/m_locops";
#loadmodule "extensions/no_oper_invis";
#loadmodule "extensions/sno_farconnect";
#loadmodule "extensions/sno_globalkline";
#loadmodule "extensions/sno_globalnickchange";
#loadmodule "extensions/sno_globaloper";
#loadmodule "extensions/sno_whois";

View File

@ -43,7 +43,6 @@ extension_LTLIBRARIES = \
restrict-unauthenticated.la \
sno_channelcreate.la \
sno_farconnect.la \
sno_globalkline.la \
sno_globalnickchange.la \
sno_globaloper.la \
umode_noctcp.la \

View File

@ -1,64 +0,0 @@
/*
* Shows notices if remote clients exit with "Bad user info" or
* ConfigFileEntry.kline_reason.
* Assumes client_exit is enabled so users can't fake these reasons,
* and kline_reason is enabled and the same everywhere.
* Yes, this is a hack, but it is simple and avoids sending
* more data across servers -- jilles
*/
#include "stdinc.h"
#include "modules.h"
#include "client.h"
#include "hook.h"
#include "ircd.h"
#include "send.h"
#include "s_conf.h"
static const char sno_desc[] =
"Adds server notices for global XLINEs, KLINEs, and DLINEs";
static void h_gla_client_exit(hook_data_client_exit *);
mapi_hfn_list_av1 gla_hfnlist[] = {
{ "client_exit", (hookfn) h_gla_client_exit },
{ NULL, NULL }
};
DECLARE_MODULE_AV2(globallineactive, NULL, NULL, NULL, NULL, gla_hfnlist, NULL, NULL, sno_desc);
static void
h_gla_client_exit(hook_data_client_exit *hdata)
{
struct Client *source_p;
source_p = hdata->target;
if (MyConnect(source_p) || !IsClient(source_p))
return;
if (!strcmp(hdata->comment, "Bad user info"))
{
sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
"XLINE active for %s[%s@%s]",
source_p->name, source_p->username, source_p->host);
}
else if (ConfigFileEntry.kline_reason != NULL &&
!strcmp(hdata->comment, ConfigFileEntry.kline_reason))
{
sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
"K/DLINE active for %s[%s@%s]",
source_p->name, source_p->username, source_p->host);
}
else if (!strncmp(hdata->comment, "Temporary K-line ", 17))
{
sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
"K/DLINE active for %s[%s@%s]",
source_p->name, source_p->username, source_p->host);
}
else if (!strncmp(hdata->comment, "Temporary D-line ", 17))
{
sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
"K/DLINE active for %s[%s@%s]",
source_p->name, source_p->username, source_p->host);
}
}

View File

@ -5,7 +5,6 @@ loadmodule "extensions/extb_realname.la";
loadmodule "extensions/extb_server.la";
#loadmodule "extensions/ip_cloaking.la";
loadmodule "extensions/sno_farconnect.la";
loadmodule "extensions/sno_globalkline.la";
#loadmodule "extensions/sno_globaloper.la";
serverinfo {

View File

@ -5,7 +5,6 @@ loadmodule "extensions/extb_realname.la";
loadmodule "extensions/extb_server.la";
#loadmodule "extensions/ip_cloaking.la";
loadmodule "extensions/sno_farconnect.la";
loadmodule "extensions/sno_globalkline.la";
#loadmodule "extensions/sno_globaloper.la";
serverinfo {

View File

@ -5,7 +5,6 @@ loadmodule "extensions/extb_realname.la";
loadmodule "extensions/extb_server.la";
#loadmodule "extensions/ip_cloaking.la";
loadmodule "extensions/sno_farconnect.la";
loadmodule "extensions/sno_globalkline.la";
#loadmodule "extensions/sno_globaloper.la";
serverinfo {