this patch sends a copy of the snomask message shown to local opers to the remote source oper
-diff -r 9302219aa778 ircd/gline.c
---- a/ircd/gline.c Fri Jan 30 19:02:20 2009 +0100
-+++ b/ircd/gline.c Fri Jan 30 19:12:16 2009 +0100
-@@ -584,6 +584,18 @@
+diff -r 032bd91a5810 ircd/gline.c
+--- a/ircd/gline.c
++++ b/ircd/gline.c
+@@ -595,6 +595,18 @@
flags & (GLINE_BADCHAN|GLINE_REALNAME) ? "" : host,
- expire + TSoffset, reason);
+ expire, reason);
+ /* local gline set by remote user, inform oper of success */
-+ if ((flags & GLINE_LOCAL) && IsUser(sptr) && !MyUser(sptr))
++ if ((flags & GLINE_LOCAL) && IsUser(sptr) && !MyConnect(sptr))
+ sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :%s adding local %s for %s%s%s%s%s, expiring at %Tu: %s",
+ sptr, cli_name(sptr),
+ (flags & GLINE_BADCHAN) ? "BADCHAN" : "GLINE",
/* make the gline */
agline = make_gline(nick, user, host, reason, expire, lastmod, lifetime, flags);
-@@ -972,6 +984,16 @@
+@@ -937,6 +949,16 @@
gline->gl_host ? "@" : "", gline->gl_host ? gline->gl_host : "",
buf);
+ /* local change by remote user, inform oper of success */
-+ if ((action == GLINE_LOCAL_ACTIVATE || action == GLINE_LOCAL_DEACTIVATE) && IsUser(sptr) && !MyUser(sptr))
++ if ((action == GLINE_LOCAL_ACTIVATE || action == GLINE_LOCAL_DEACTIVATE) && IsUser(sptr) && !MyConnect(sptr))
+ sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :%s modifying global %s for %s%s%s%s%s:%s",
+ sptr, cli_name(sptr),
+ GlineIsBadChan(gline) ? "BADCHAN" : "GLINE",
/* We'll be simple for this release, but we can update this to change
* the propagation syntax on future updates
*/
-@@ -1020,6 +1042,16 @@
+@@ -984,6 +1006,16 @@
gline->gl_user,
gline->gl_host ? "@" : "", gline->gl_host ? gline->gl_host : "");
+ /* local change by remote user, inform oper of success */
-+ if (IsUser(sptr) && !MyUser(sptr))
++ if (IsUser(sptr) && !MyConnect(sptr))
+ sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :%s removing local %s for %s%s%s%s%s",
+ sptr, cli_name(sptr),
+ GlineIsBadChan(gline) ? "BADCHAN" : "GLINE",
gline_free(gline); /* get rid of the G-line */
return 0; /* convenience return */
-diff -r 9302219aa778 ircd/jupe.c
---- a/ircd/jupe.c Fri Jan 30 19:02:20 2009 +0100
-+++ b/ircd/jupe.c Fri Jan 30 19:12:16 2009 +0100
+diff -r 032bd91a5810 ircd/jupe.c
+--- a/ircd/jupe.c
++++ b/ircd/jupe.c
@@ -166,6 +166,20 @@
flags & JUPE_LOCAL ? "local " : "", server, expire + TSoffset,
reason);
+ if (flags & JUPE_LOCAL) {
+
+ /* set by remote oper - inform them about the success */
-+ if (IsUser(sptr) && !MyUser(sptr))
++ if (IsUser(sptr) && !MyConnect(sptr))
+ sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :%s adding local JUPE for %s, expiring at %Tu: %s",
+ sptr, cli_name(sptr), server, expire + TSoffset, reason);
+
+ if (flags & JUPE_LOCAL) {
+
+ /* done by remote oper - inform them about the success */
-+ if (IsUser(sptr) && !MyUser(sptr))
++ if (IsUser(sptr) && !MyConnect(sptr))
+ sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :% %s JUPE for %s, expiring at %Tu: %s",
+ sptr, cli_name(sptr), JupeIsLocal(jupe) ? "removing local" : "locally deactivating",
+ jupe->ju_server, jupe->ju_expire + TSoffset, jupe->ju_reason);