From 50ed74a740d8e9be5948f9f11fb1a720c83dd38c Mon Sep 17 00:00:00 2001 From: Přemysl Janouch
Date: Wed, 1 Aug 2018 09:21:37 +0200 Subject: kike: break out properly on errors in MODE processing We used to only abort the inner loop, which was insufficient. --- kike.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kike.c b/kike.c index baa141f..68bcdcd 100644 --- a/kike.c +++ b/kike.c @@ -2006,10 +2006,11 @@ irc_handle_chan_mode_change mode_processor_step (&p, '+'); while (*mode_string) if (!mode_processor_step (&p, *mode_string++)) - break; + goto done_processing; } // TODO: limit to three changes with parameter per command +done_processing: if (p.added.len || p.removed.len) { struct str message = str_make (); -- cgit v1.2.3-70-g09d2