mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +02: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:
parent
cd107deb46
commit
9160ddaffd
1 changed files with 3 additions and 1 deletions
|
|
@ -165,8 +165,8 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g_warning("Invalid CAP %s key/value pair", evt);
|
g_warning("Invalid CAP %s key/value pair", evt);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A multiline response is always terminated by a normal one,
|
/* 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 {
|
else {
|
||||||
g_warning("Invalid CAP %s key/value pair", evt);
|
g_warning("Invalid CAP %s key/value pair", evt);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
cap_emit_signal(server, "new", key);
|
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 {
|
else {
|
||||||
g_warning("Invalid CAP %s key/value pair", evt);
|
g_warning("Invalid CAP %s key/value pair", evt);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
cap_emit_signal(server, "delete", key);
|
cap_emit_signal(server, "delete", key);
|
||||||
/* The server removed this CAP, remove it from the list
|
/* The server removed this CAP, remove it from the list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue