aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/Makefile.am4
-rw-r--r--extensions/sno_farconnect.c82
-rw-r--r--extensions/sno_globalkline.c64
-rw-r--r--extensions/sno_globalnickchange.c46
-rw-r--r--extensions/sno_globaloper.c39
5 files changed, 0 insertions, 235 deletions
diff --git a/extensions/Makefile.am b/extensions/Makefile.am
index 9b772207..abfcbe20 100644
--- a/extensions/Makefile.am
+++ b/extensions/Makefile.am
@@ -41,10 +41,6 @@ extension_LTLIBRARIES = \
override_kick_immunity.la \
restrict-unauthenticated.la \
sno_channelcreate.la \
- sno_farconnect.la \
- sno_globalkline.la \
- sno_globalnickchange.la \
- sno_globaloper.la \
umode_noctcp.la \
m_adminwall.la \
m_echotags.la \
diff --git a/extensions/sno_farconnect.c b/extensions/sno_farconnect.c
deleted file mode 100644
index 78780658..00000000
--- a/extensions/sno_farconnect.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Remote client connect/exit notices on snomask +F (far).
- * To avoid flooding, connects/exits part of netjoins/netsplits are not shown.
- * Consequently, it is not possible to use these notices to keep track
- * of all clients.
- * -- jilles
- */
-
-#include "stdinc.h"
-#include "modules.h"
-#include "client.h"
-#include "hook.h"
-#include "ircd.h"
-#include "send.h"
-#include "s_conf.h"
-#include "snomask.h"
-
-static const char sno_desc[] =
- "Adds server notice mask +F that allows operators to receive notices for connections on other servers";
-
-static int _modinit(void);
-static void _moddeinit(void);
-static void h_gcn_new_remote_user(struct Client *);
-static void h_gcn_client_exit(hook_data_client_exit *);
-
-mapi_hfn_list_av1 gcn_hfnlist[] = {
- { "new_remote_user", (hookfn) h_gcn_new_remote_user },
- { "client_exit", (hookfn) h_gcn_client_exit },
- { NULL, NULL }
-};
-
-DECLARE_MODULE_AV2(globalconnexit, _modinit, _moddeinit, NULL, NULL, gcn_hfnlist, NULL, NULL, sno_desc);
-
-static int
-_modinit(void)
-{
- /* add the snomask to the available slot */
- snomask_modes['F'] = find_snomask_slot();
-
- /* show the fact that we are showing user information in /version */
- opers_see_all_users = true;
-
- return 0;
-}
-
-static void
-_moddeinit(void)
-{
- /* disable the snomask and remove it from the available list */
- snomask_modes['F'] = 0;
-}
-
-static void
-h_gcn_new_remote_user(struct Client *source_p)
-{
-
- if (!HasSentEob(source_p->servptr))
- return;
- sendto_realops_snomask_from(snomask_modes['F'], L_ALL, source_p->servptr,
- "Client connecting: %s (%s@%s) [%s] {%s} [%s]",
- source_p->name, source_p->username, source_p->orighost,
- show_ip(NULL, source_p) ? source_p->sockhost : "255.255.255.255",
- "?", source_p->info);
-}
-
-static void
-h_gcn_client_exit(hook_data_client_exit *hdata)
-{
- struct Client *source_p;
-
- source_p = hdata->target;
-
- if (MyConnect(source_p) || !IsClient(source_p))
- return;
- if (!HasSentEob(source_p->servptr))
- return;
- sendto_realops_snomask_from(snomask_modes['F'], L_ALL, source_p->servptr,
- "Client exiting: %s (%s@%s) [%s] [%s]",
- source_p->name,
- source_p->username, source_p->host, hdata->comment,
- show_ip(NULL, source_p) ? source_p->sockhost : "255.255.255.255");
-}
diff --git a/extensions/sno_globalkline.c b/extensions/sno_globalkline.c
deleted file mode 100644
index 0b3285b2..00000000
--- a/extensions/sno_globalkline.c
+++ /dev/null
@@ -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);
- }
-}
diff --git a/extensions/sno_globalnickchange.c b/extensions/sno_globalnickchange.c
deleted file mode 100644
index 0e338c5c..00000000
--- a/extensions/sno_globalnickchange.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Remote client nick change notices.
- */
-
-#include "stdinc.h"
-#include "modules.h"
-#include "client.h"
-#include "hook.h"
-#include "ircd.h"
-#include "send.h"
-#include "s_conf.h"
-#include "snomask.h"
-
-static const char sno_desc[] =
- "Adds server notices for remote nick changes";
-
-static int _modinit(void);
-static void h_gnc_nick_change(hook_data *data);
-
-mapi_hfn_list_av1 gcn_hfnlist[] = {
- { "remote_nick_change", (hookfn) h_gnc_nick_change },
- { NULL, NULL }
-};
-
-DECLARE_MODULE_AV2(globalnickchange, _modinit, NULL, NULL, NULL, gcn_hfnlist, NULL, NULL, sno_desc);
-
-static int
-_modinit(void)
-{
- /* show the fact that we are showing user information in /version */
- opers_see_all_users = true;
-
- return 0;
-}
-
-static void
-h_gnc_nick_change(hook_data *data)
-{
- struct Client *source_p = data->client;
- const char *oldnick = data->arg1;
- const char *newnick = data->arg2;
-
- sendto_realops_snomask_from(SNO_NCHANGE, L_ALL, source_p->servptr,
- "Nick change: From %s to %s [%s@%s]",
- oldnick, newnick, source_p->username, source_p->host);
-}
diff --git a/extensions/sno_globaloper.c b/extensions/sno_globaloper.c
deleted file mode 100644
index ea5476c2..00000000
--- a/extensions/sno_globaloper.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Remote oper up notices.
- */
-
-#include "stdinc.h"
-#include "modules.h"
-#include "client.h"
-#include "hook.h"
-#include "ircd.h"
-#include "send.h"
-#include "s_conf.h"
-#include "snomask.h"
-
-static const char sno_desc[] =
- "Adds server notices for remote oper up";
-
-static void h_sgo_umode_changed(void *);
-
-mapi_hfn_list_av1 sgo_hfnlist[] = {
- { "umode_changed", (hookfn) h_sgo_umode_changed },
- { NULL, NULL }
-};
-
-DECLARE_MODULE_AV2(sno_globaloper, NULL, NULL, NULL, NULL, sgo_hfnlist, NULL, NULL, sno_desc);
-
-static void
-h_sgo_umode_changed(void *vdata)
-{
- hook_data_umode_changed *data = (hook_data_umode_changed *)vdata;
- struct Client *source_p = data->client;
-
- if (MyConnect(source_p) || !HasSentEob(source_p->servptr))
- return;
-
- if (!(data->oldumodes & UMODE_OPER) && IsOper(source_p))
- sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
- "%s (%s@%s) is now an operator",
- source_p->name, source_p->username, source_p->host);
-}