From: Kevin L. Mitchell Date: Sun, 15 Apr 2007 19:14:42 +0000 (+0000) Subject: Author: Kev X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=7d05062a94eb0c6e7434d4d072e03f389492afda Author: Kev 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 --- diff --git a/ChangeLog b/ChangeLog index 3e33551..da72be6 100644 --- 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 diff --git a/ircd/m_gline.c b/ircd/m_gline.c index 13fbd90..2e59754 100644 --- a/ircd/m_gline.c +++ b/ircd/m_gline.c @@ -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 */