mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #370 from dequis/irc-cap-space
irc-cap: Don't send a space at the beginning of the CAP REQ parameter
This commit is contained in:
commit
b5cfa55d9b
@ -112,6 +112,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
|
|||||||
/* Check whether the cap is supported by the server */
|
/* Check whether the cap is supported by the server */
|
||||||
for (tmp = server->cap_queue; tmp != NULL; tmp = tmp->next) {
|
for (tmp = server->cap_queue; tmp != NULL; tmp = tmp->next) {
|
||||||
if (gslist_find_string(server->cap_supported, tmp->data)) {
|
if (gslist_find_string(server->cap_supported, tmp->data)) {
|
||||||
|
if (avail_caps > 0)
|
||||||
g_string_append_c(cmd, ' ');
|
g_string_append_c(cmd, ' ');
|
||||||
g_string_append(cmd, tmp->data);
|
g_string_append(cmd, tmp->data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user