From 1f24b3b1c2e860285e8abef027ace5391bf96f19 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 17 Sep 2008 00:24:50 +0200 Subject: [PATCH] Make sno_globalkline work for servers without kline_reason, but only for temps. --- extensions/sno_globalkline.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/extensions/sno_globalkline.c b/extensions/sno_globalkline.c index 487044e..a654c48 100644 --- a/extensions/sno_globalkline.c +++ b/extensions/sno_globalkline.c @@ -48,4 +48,16 @@ h_gla_client_exit(hook_data_client_exit *hdata) "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); + } }