summaryrefslogtreecommitdiff
path: root/src/channel_mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel_mode.c')
-rw-r--r--src/channel_mode.c4
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';