Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Sun, 15 Apr 2007 19:14:42 +0000 (19:14 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Sun, 15 Apr 2007 19:14:42 +0000 (19:14 +0000)
Log message:

%c takes characters, not pointers--fix typo in mo_gline() that forwards
remote local G-lines to their target servers.  In this case, ms_gline() got
it right...

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

ChangeLog
ircd/m_gline.c

index 3e33551d37a6c4ec3a6985fec3808a45f2c77afa..da72be68316042edd780d6a6cb03bac34a68bb57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
        * ircd/m_gline.c: fix minor typo in code that forwards remote
        local activations/deactivations: %c takes characters, not
        pointers!
+       (mo_gline): fix similar typo in code forwarding remote local
+       G-lines by opers
 
 2007-04-10  Michael Poole <mdpoole@troilus.org>
 
index 13fbd9052b20d521d6891dd37a8b11ea7793b029..2e5975409fb618f10835ae16bb7118ca3975893d 100644 (file)
@@ -241,10 +241,10 @@ ms_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
     assert(!IsMe(acptr));
 
     Debug((DEBUG_DEBUG, "I am forwarding a local G-line to a remote server; "
-          "target %s, mask %s, operforce %s, action %s, expire %Tu, "
+          "target %s, mask %s, operforce %s, action %c, expire %Tu, "
           "lastmod %Tu, reason: %s", target, mask,
           flags & GLINE_OPERFORCE ? "YES" : "NO",
-          action == GLINE_ACTIVATE ? "+" :  "-", expire_off, CurrentTime,
+          action == GLINE_ACTIVATE ? '+' :  '-', expire_off, CurrentTime,
           reason));
 
     sendcmdto_one(sptr, CMD_GLINE, acptr, "%C %s%c%s %Tu %Tu :%s",
@@ -514,14 +514,14 @@ 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 G-line to a remote "
-            "server; target %s, mask %s, operforce %s, action %s, "
+            "server; target %s, mask %s, operforce %s, action %c, "
             "expire %Tu, reason %s", target, mask,
             flags & GLINE_OPERFORCE ? "YES" : "NO",
-            action == GLINE_ACTIVATE ? "+" : "-", expire_off, reason));
+            action == GLINE_ACTIVATE ? '+' : '-', expire_off, reason));
 
       sendcmdto_one(sptr, CMD_GLINE, acptr, "%C %s%c%s %Tu %Tu :%s",
                    acptr, flags & GLINE_OPERFORCE ? "!" : "",
-                   action == GLINE_ACTIVATE ? "+" : "-", mask, expire_off,
+                   action == GLINE_ACTIVATE ? '+' : '-', mask, expire_off,
                    CurrentTime, reason);
 
       return 0; /* all done */