diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-05-29 15:57:07 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-05-29 15:57:07 +0000 |
commit | 3b74594929207be2eaea2765d73e279eefa29ea5 (patch) | |
tree | 00f9998548b8435844780094003db4415b391c46 /src | |
parent | bcafa9b67f10b1276336bdc382f34140965dd278 (diff) |
- channel_mode.c:channel_modes(): fix to previous changes
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3684 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-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 cdb737c..6f0abe4 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, *pbuf ? " %s" : "%s", chptr->mode.key); } *mbuf = '\0'; |