Avoid unnecessary test

The first element is "005", it cannot be "CAPAB".
This commit is contained in:
Pierre-Louis Bonicoli 2014-09-16 02:40:45 +02:00
parent f7ace64abe
commit db27168c76
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}