summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2017-10-23 21:23:59 +0200
committerLemonBoy <thatlemon@gmail.com>2018-01-07 12:36:20 +0100
commit9160ddaffd45b03c523320ef8f71bb3a8a9fb87a (patch)
tree860abbf81595dbcf30baecdb685714cfdff104c3 /src
parentcd107deb463934f7a8611cdc8d17b861a93d97f9 (diff)
downloadirssi-9160ddaffd45b03c523320ef8f71bb3a8a9fb87a.zip
Keep processing the CAPs on error
If an invalid CAP is found we keep going by parsing the next one.
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-cap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/core/irc-cap.c b/src/irc/core/irc-cap.c
index 8be9d33f..d93dfac4 100644
--- a/src/irc/core/irc-cap.c
+++ b/src/irc/core/irc-cap.c
@@ -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