]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/sno_globalkline.c
Add ERR_MLOCKRESTRICTED (735) to reflect bounces caused by MLOCK.
[irc/rqf/shadowircd.git] / extensions / sno_globalkline.c
index 8a5699a9f892973e4527fbb36b0501907e4fbcb5..8fb26e8690d455001d136df61cc0eaf2f436e4be 100644 (file)
@@ -6,7 +6,6 @@
  * Yes, this is a hack, but it is simple and avoids sending
  * more data across servers -- jilles
  *
- * $Id: sno_globalkline.c 613 2006-01-29 03:03:02Z nenolod $
  */
 
 #include "stdinc.h"
@@ -45,7 +44,19 @@ h_gla_client_exit(hook_data_client_exit *hdata)
                        !strcmp(hdata->comment, ConfigFileEntry.kline_reason))
        {
                sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
-                               "K/D/GLINE active for %s[%s@%s]",
+                               "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);
        }
 }