aboutsummaryrefslogtreecommitdiffstats
path: root/account.c
diff options
context:
space:
mode:
Diffstat (limited to 'account.c')
-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 );