Committer  : klmitch
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-04-15 19:09:50 UTC

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

Log message:

Author: Kev <[EMAIL PROTECTED]>
Log message:

Fix minor typo in the code that forwards remote local activations and
deactivations to their intended targets.  %c does not take pointers as
arguments!

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.179 ircu2.10/ChangeLog:1.710.2.180
--- ircu2.10/ChangeLog:1.710.2.179      Tue Apr 10 20:25:21 2007
+++ ircu2.10/ChangeLog  Sun Apr 15 12:09:38 2007
@@ -1,3 +1,9 @@
+2007-04-15  Kevin L. Mitchell  <[EMAIL PROTECTED]>
+
+       * ircd/m_gline.c: fix minor typo in code that forwards remote
+       local activations/deactivations: %c takes characters, not
+       pointers!
+
 2007-04-10  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/ircd_parser.y (iauth): Avoid problems related to MyFree's
Index: ircu2.10/ircd/m_gline.c
diff -u ircu2.10/ircd/m_gline.c:1.26.2.5 ircu2.10/ircd/m_gline.c:1.26.2.6
--- ircu2.10/ircd/m_gline.c:1.26.2.5    Tue Apr 10 07:53:03 2007
+++ ircu2.10/ircd/m_gline.c     Sun Apr 15 12:09:38 2007
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_gline.c,v 1.26.2.5 2007/04/10 14:53:03 klmitch Exp $
+ * $Id: m_gline.c,v 1.26.2.6 2007/04/15 19:09:38 klmitch Exp $
  */
 
 /*
@@ -170,13 +170,13 @@
   if ((action == GLINE_LOCAL_ACTIVATE || action == GLINE_LOCAL_DEACTIVATE) &&
       !IsMe(acptr)) {
     Debug((DEBUG_DEBUG, "I am forwarding a local change to a global gline "
-          "to a remote server; target %s, mask %s, operforce %s, action %s",
+          "to a remote server; target %s, mask %s, operforce %s, action %c",
           target, mask, flags & GLINE_OPERFORCE ? "YES" : "NO",
-          action == GLINE_LOCAL_ACTIVATE ? ">" : "<"));
+          action == GLINE_LOCAL_ACTIVATE ? '>' : '<'));
 
     sendcmdto_one(sptr, CMD_GLINE, acptr, "%C %s%c%s", acptr,
                  flags & GLINE_OPERFORCE ? "!" : "",
-                 action == GLINE_LOCAL_ACTIVATE ? ">" : "<", mask);
+                 action == GLINE_LOCAL_ACTIVATE ? '>' : '<', mask);
 
     return 0; /* all done */
   }
@@ -470,13 +470,13 @@
       return send_reply(sptr, ERR_NOPRIVILEGES);
 
     Debug((DEBUG_DEBUG, "I am forwarding a local change to a global gline "
-          "to a remote server; target %s, mask %s, operforce %s, action %s",
+          "to a remote server; target %s, mask %s, operforce %s, action %c",
           cli_name(acptr), mask, flags & GLINE_OPERFORCE ? "YES" : "NO",
-          action == GLINE_LOCAL_ACTIVATE ? ">" : "<"));
+          action == GLINE_LOCAL_ACTIVATE ? '>' : '<'));
 
     sendcmdto_one(sptr, CMD_GLINE, acptr, "%C %s%c%s", acptr,
                  flags & GLINE_OPERFORCE ? "!" : "",
-                 action == GLINE_LOCAL_ACTIVATE ? ">" : "<", mask);
+                 action == GLINE_LOCAL_ACTIVATE ? '>' : '<', mask);
 
     return 0; /* all done */
   }
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to