aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-09-01 11:21:01 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-09-01 11:21:01 +0100
commitf86a3d558e1e69a3728c8f8fd014cbcd6271f98e (patch)
tree59360acaae58add7b27f280e9d1f047375f0611b
parent35529ae92ca468d7be6be60663c1f8d6a07b8373 (diff)
Fixed ugly looping bug in chatroom list cleanup code.
-rw-r--r--account.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/account.c b/account.c
index f547d8f1..cb54731f 100644
--- a/account.c
+++ b/account.c
@@ -204,11 +204,11 @@ void account_del( irc_t *irc, account_t *acc )
irc->accounts = a->next;
for( c = irc->chatrooms; c; c = nc )
+ {
+ nc = c->next;
if( acc == c->acc )
- {
- nc = c->next;
chat_del( irc, c );
- }
+ }
while( a->set )
set_del( &a->set, a->set->key );