mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user