diff options
| author | Sven Moritz Hallberg <pesco@khjk.org> | 2009-03-12 20:33:28 +0100 |
|---|---|---|
| committer | Sven Moritz Hallberg <pesco@khjk.org> | 2009-03-12 20:33:28 +0100 |
| commit | 673a54c5a78afd1dd41b4cd8811df5ab65042583 (patch) | |
| tree | bffaa961139ac2be20f0875ef0ed37c87d6b18a9 /account.c | |
| parent | 823de9d44f262ea2364ac8ec6a1e18e0f7dab658 (diff) | |
| parent | 9e768da723b4a770967efa0d4dcaf58ccef8917f (diff) | |
pretty blind try at merging in the latest trunk
Diffstat (limited to 'account.c')
| -rw-r--r-- | account.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -189,6 +189,7 @@ account_t *account_get( irc_t *irc, char *id ) void account_del( irc_t *irc, account_t *acc ) { account_t *a, *l = NULL; + struct chat *c, *nc; if( acc->ic ) /* Caller should have checked, accounts still in use can't be deleted. */ @@ -202,6 +203,13 @@ void account_del( irc_t *irc, account_t *acc ) else irc->accounts = a->next; + for( c = irc->chatrooms; c; c = nc ) + { + nc = c->next; + if( acc == c->acc ) + chat_del( irc, c ); + } + while( a->set ) set_del( &a->set, a->set->key ); |
