Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Sun, 15 Apr 2007 19:09:38 +0000 (19:09 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Sun, 15 Apr 2007 19:09:38 +0000 (19:09 +0000)
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!

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1801 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_gline.c

index 1c09460091e767c6d05c7feaa29ee67998c24c96..3e33551d37a6c4ec3a6985fec3808a45f2c77afa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-15  Kevin L. Mitchell  <klmitch@mit.edu>
+
+       * 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 <mdpoole@troilus.org>
 
        * ircd/ircd_parser.y (iauth): Avoid problems related to MyFree's
index 1fa28dd79064d7d556bb2173ccccce4f548df94e..13fbd9052b20d521d6891dd37a8b11ea7793b029 100644 (file)
@@ -170,13 +170,13 @@ ms_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
   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 @@ mo_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
       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 */
   }