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

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

Log message:

Author: Kev <[EMAIL PROTECTED]>
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...

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.180 ircu2.10/ChangeLog:1.710.2.181
--- ircu2.10/ChangeLog:1.710.2.180      Sun Apr 15 12:09:38 2007
+++ ircu2.10/ChangeLog  Sun Apr 15 12:14:40 2007
@@ -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 <[EMAIL PROTECTED]>
 
Index: ircu2.10/ircd/m_gline.c
diff -u ircu2.10/ircd/m_gline.c:1.26.2.6 ircu2.10/ircd/m_gline.c:1.26.2.7
--- ircu2.10/ircd/m_gline.c:1.26.2.6    Sun Apr 15 12:09:38 2007
+++ ircu2.10/ircd/m_gline.c     Sun Apr 15 12:14:42 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.6 2007/04/15 19:09:38 klmitch Exp $
+ * $Id: m_gline.c,v 1.26.2.7 2007/04/15 19:14:42 klmitch Exp $
  */
 
 /*
@@ -241,10 +241,10 @@
     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 @@
        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 */
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
Patches@undernet.org
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to