diff --git a/channel.c b/channel.c index cac8ff7..9b0e2e2 100644 --- a/channel.c +++ b/channel.c @@ -101,6 +101,9 @@ if (tmpUsers->prev != 0x0) tmpUsers->prev->next = tmpUsers->next; + else + tmpChannel->users = tmpUsers->next; + if (tmpUsers->next != 0x0) tmpUsers->next->prev = tmpUsers->prev;