From: Kevin L. Mitchell Date: Sun, 15 Apr 2007 19:09:38 +0000 (+0000) Subject: Author: Kev X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=e366e6a70e0710686a255ec1689cacc379eddd9f Author: Kev 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 --- diff --git a/ChangeLog b/ChangeLog index 1c09460..3e33551 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-15 Kevin L. Mitchell + + * 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 * ircd/ircd_parser.y (iauth): Avoid problems related to MyFree's diff --git a/ircd/m_gline.c b/ircd/m_gline.c index 1fa28dd..13fbd90 100644 --- a/ircd/m_gline.c +++ b/ircd/m_gline.c @@ -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 */ }