]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blobdiff - remoteglinejupe.patch
Refresh patch
[irc/quakenet/snircd-patchqueue.git] / remoteglinejupe.patch
index 1b16f264292133bd5516f785b580068a58804788..6994214acb582408932a9b79f4834bee2f7a2ff7 100644 (file)
@@ -3,15 +3,15 @@ never gets a reply in case of succes
 
 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",
@@ -25,12 +25,12 @@ diff -r 9302219aa778 ircd/gline.c
    /* 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",
@@ -42,12 +42,12 @@ diff -r 9302219aa778 ircd/gline.c
    /* 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",
@@ -59,9 +59,9 @@ diff -r 9302219aa778 ircd/gline.c
    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);
@@ -70,7 +70,7 @@ diff -r 9302219aa778 ircd/jupe.c
 +  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);
 +
@@ -91,7 +91,7 @@ diff -r 9302219aa778 ircd/jupe.c
 +  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);