kike: break out properly on errors in MODE processing
We used to only abort the inner loop, which was insufficient.
This commit is contained in:
parent
3ca08badc2
commit
50ed74a740
3
kike.c
3
kike.c
|
@ -2006,10 +2006,11 @@ irc_handle_chan_mode_change
|
||||||
mode_processor_step (&p, '+');
|
mode_processor_step (&p, '+');
|
||||||
while (*mode_string)
|
while (*mode_string)
|
||||||
if (!mode_processor_step (&p, *mode_string++))
|
if (!mode_processor_step (&p, *mode_string++))
|
||||||
break;
|
goto done_processing;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: limit to three changes with parameter per command
|
// TODO: limit to three changes with parameter per command
|
||||||
|
done_processing:
|
||||||
if (p.added.len || p.removed.len)
|
if (p.added.len || p.removed.len)
|
||||||
{
|
{
|
||||||
struct str message = str_make ();
|
struct str message = str_make ();
|
||||||
|
|
Loading…
Reference in New Issue