kike: fix client unregistration
This commit is contained in:
parent
34967973aa
commit
38887df202
|
@ -681,9 +681,10 @@ client_unregister (struct client *c, const char *reason)
|
||||||
|
|
||||||
struct str_map_iter iter;
|
struct str_map_iter iter;
|
||||||
str_map_iter_init (&iter, &c->ctx->channels);
|
str_map_iter_init (&iter, &c->ctx->channels);
|
||||||
struct channel *chan;
|
struct channel *chan, *next = str_map_iter_next (&iter);
|
||||||
while ((chan = str_map_iter_next (&iter)))
|
for (chan = next; chan; chan = next)
|
||||||
{
|
{
|
||||||
|
next = str_map_iter_next (&iter);
|
||||||
struct channel_user *user;
|
struct channel_user *user;
|
||||||
if (!(user = channel_get_user (chan, c)))
|
if (!(user = channel_get_user (chan, c)))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue