diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2015-11-27 00:07:15 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2015-11-27 00:07:15 +0100 |
commit | b5cfa55d9be3d7cd74628215ba5dd126c4e18342 (patch) | |
tree | c3f9d6e700ca7f8430f4429b91877a4e200254c7 | |
parent | 99193e99718630b90f52e5a25c19dd9b6b7229f6 (diff) | |
parent | 82ce1de5b004d27b8a742a72065feebf6d96f3ae (diff) | |
download | irssi-b5cfa55d9be3d7cd74628215ba5dd126c4e18342.zip |
Merge pull request #370 from dequis/irc-cap-space
irc-cap: Don't send a space at the beginning of the CAP REQ parameter
-rw-r--r-- | src/irc/core/irc-cap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/core/irc-cap.c b/src/irc/core/irc-cap.c index cd3ae677..5464e493 100644 --- a/src/irc/core/irc-cap.c +++ b/src/irc/core/irc-cap.c @@ -112,7 +112,8 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add /* Check whether the cap is supported by the server */ for (tmp = server->cap_queue; tmp != NULL; tmp = tmp->next) { if (gslist_find_string(server->cap_supported, tmp->data)) { - g_string_append_c(cmd, ' '); + if (avail_caps > 0) + g_string_append_c(cmd, ' '); g_string_append(cmd, tmp->data); avail_caps++; |