Avoid unnecessary test
The first element is "005", it cannot be "CAPAB".
This commit is contained in:
parent
f7ace64abe
commit
db27168c76
@ -420,7 +420,7 @@ int irc_dispatch_server(bip_t *bip, struct link_server *server,
|
||||
if (LINK(server)->ignore_server_capab &&
|
||||
irc_line_elem_equals(line, 0, "005")) {
|
||||
int i;
|
||||
for (i = 0; i < irc_line_count(line); i++)
|
||||
for (i = 1; i < irc_line_count(line); i++)
|
||||
if (irc_line_elem_equals(line, i, "CAPAB"))
|
||||
irc_line_drop(line, i);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user