Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-12-19 05:20:58 UTC

Modified files:
  Tag: u2_10_12_branch
     ChangeLog ircd/m_jupe.c

Log message:

Fix privilege check for juping servers.
Bug spotted by paulr.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.129 ircu2.10/ChangeLog:1.710.2.130
--- ircu2.10/ChangeLog:1.710.2.129      Thu Dec  7 16:44:38 2006
+++ ircu2.10/ChangeLog  Mon Dec 18 21:20:47 2006
@@ -1,3 +1,7 @@
+2006-12-18  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/m_jupe.c (mo_jupe): Fix which privilege is tested.
+
 2006-12-07  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/listener.c (show_ports): Update to show '4' and/or '6' as
Index: ircu2.10/ircd/m_jupe.c
diff -u ircu2.10/ircd/m_jupe.c:1.15 ircu2.10/ircd/m_jupe.c:1.15.2.1
--- ircu2.10/ircd/m_jupe.c:1.15 Fri Dec 10 21:13:47 2004
+++ ircu2.10/ircd/m_jupe.c      Mon Dec 18 21:20:48 2006
@@ -21,7 +21,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_jupe.c,v 1.15 2004/12/11 05:13:47 klmitch Exp $
+ * $Id: m_jupe.c,v 1.15.2.1 2006/12/19 05:20:48 entrope Exp $
  */
 
 /*
@@ -226,18 +226,18 @@
        return send_reply(sptr, ERR_NOSUCHSERVER, target);
 
       if (!IsMe(acptr)) { /* manually propagate, since we don't set it */
-       if (!HasPriv(sptr, PRIV_GLINE))
+       if (!HasPriv(sptr, PRIV_JUPE))
          return send_reply(sptr, ERR_NOPRIVILEGES);
 
        sendcmdto_one(sptr, CMD_JUPE, acptr, "%C %c%s %s %Tu :%s", acptr,
                      flags & JUPE_ACTIVE ? '+' : '-', server, parv[3],
                      TStime(), reason);
        return 0;
-      } else if (!HasPriv(sptr, PRIV_LOCAL_GLINE))
+      } else if (!HasPriv(sptr, PRIV_LOCAL_JUPE))
        return send_reply(sptr, ERR_NOPRIVILEGES);
 
       flags |= JUPE_LOCAL;
-    } else if (!HasPriv(sptr, PRIV_GLINE))
+    } else if (!HasPriv(sptr, PRIV_JUPE))
       return send_reply(sptr, ERR_NOPRIVILEGES);
   }
 
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to