1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

Keep processing the CAPs on error

If an invalid CAP is found we keep going by parsing the next one.
This commit is contained in:
LemonBoy 2017-10-23 21:23:59 +02:00
parent cd107deb46
commit 9160ddaffd

View File

@ -165,8 +165,8 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
}
else {
g_warning("Invalid CAP %s key/value pair", evt);
continue;
}
}
/* A multiline response is always terminated by a normal one,
@ -248,6 +248,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
}
else {
g_warning("Invalid CAP %s key/value pair", evt);
continue;
}
cap_emit_signal(server, "new", key);
}
@ -261,6 +262,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
}
else {
g_warning("Invalid CAP %s key/value pair", evt);
continue;
}
cap_emit_signal(server, "delete", key);
/* The server removed this CAP, remove it from the list