diff options
author | Přemysl Janouch <p@janouch.name> | 2018-08-01 09:21:37 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-08-01 09:21:37 +0200 |
commit | 50ed74a740d8e9be5948f9f11fb1a720c83dd38c (patch) | |
tree | a9c2856a65308a2aacfd0b7eee5f1fea01debe9f /kike.c | |
parent | 3ca08badc288df7ea2d253b8232d767ec38b558e (diff) | |
download | xK-50ed74a740d8e9be5948f9f11fb1a720c83dd38c.tar.gz xK-50ed74a740d8e9be5948f9f11fb1a720c83dd38c.tar.xz xK-50ed74a740d8e9be5948f9f11fb1a720c83dd38c.zip |
kike: break out properly on errors in MODE processing
We used to only abort the inner loop, which was insufficient.
Diffstat (limited to 'kike.c')
-rw-r--r-- | kike.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 (); |