aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-12 00:49:32 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-12 00:49:32 +0200
commiteabc9d2c1b1d29aeb47162da64ce2b607c3d43ff (patch)
tree0f6258df41bf50a6b3bb5e7eefbba0bcfa687443 /irc.c
parentd986463c9e026b2a5f003f44db3105aa5449fc27 (diff)
Fixed cleanup issues when turning off an account. Also fixed syntax of
*_user_free().
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/irc.c b/irc.c
index 4824d0ac..b6a1b9f9 100644
--- a/irc.c
+++ b/irc.c
@@ -209,10 +209,7 @@ void irc_free( irc_t * irc )
*/
while( irc->users )
- {
- irc_user_t *iu = irc->users->data;
- irc_user_free( irc, iu->nick );
- }
+ irc_user_free( irc, (irc_user_t *) irc->users->data );
while( irc->channels )
irc_channel_free( irc->channels->data );