mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
irc-cap: Don't send a space at the beginning of the CAP REQ parameter
Turns out it confuses inspircd, making it reply a NAK with empty parameter. The rest is ACKed anyway. I've already whined at saberuk and there's a pending pull request over there fixing this issue. And, of course, this is cleaner.
This commit is contained in:
parent
99193e9971
commit
82ce1de5b0
1 changed files with 2 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue