diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-05-29 15:48:46 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-05-29 15:48:46 +0000 |
commit | bcafa9b67f10b1276336bdc382f34140965dd278 (patch) | |
tree | 05a746282130ca8eaf16eca3edd677b3df0969ac | |
parent | a5552f3b51875c2a0b58ef9a84d8112cb98d5e6b (diff) |
- channel_mode.c:channel_modes(): get rid of trailing spaces if
the channel is +k/+l
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3683 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r-- | src/channel_mode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channel_mode.c b/src/channel_mode.c index 1df04a0..cdb737c 100644 --- a/src/channel_mode.c +++ b/src/channel_mode.c @@ -318,7 +318,7 @@ channel_modes(struct Channel *chptr, struct Client *client_p, *mbuf++ = 'l'; if (IsServer(client_p) || HasFlag(client_p, FLAGS_SERVICE) || IsMember(client_p, chptr)) - pbuf += sprintf(pbuf, "%d ", chptr->mode.limit); + pbuf += sprintf(pbuf, " %d", chptr->mode.limit); } if (chptr->mode.key[0]) @@ -326,7 +326,7 @@ channel_modes(struct Channel *chptr, struct Client *client_p, *mbuf++ = 'k'; if (IsServer(client_p) || HasFlag(client_p, FLAGS_SERVICE) || IsMember(client_p, chptr)) - sprintf(pbuf, "%s ", chptr->mode.key); + sprintf(pbuf, " %s", chptr->mode.key); } *mbuf = '\0'; |