aboutsummaryrefslogtreecommitdiffstats
path: root/irc_user.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_user.c
parentd986463c9e026b2a5f003f44db3105aa5449fc27 (diff)
Fixed cleanup issues when turning off an account. Also fixed syntax of
*_user_free().
Diffstat (limited to 'irc_user.c')
-rw-r--r--irc_user.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/irc_user.c b/irc_user.c
index 8ad20b54..b7629490 100644
--- a/irc_user.c
+++ b/irc_user.c
@@ -46,12 +46,11 @@ irc_user_t *irc_user_new( irc_t *irc, const char *nick )
return iu;
}
-int irc_user_free( irc_t *irc, const char *nick )
+int irc_user_free( irc_t *irc, irc_user_t *iu )
{
- irc_user_t *iu;
GSList *l;
- if( !( iu = irc_user_by_name( irc, nick ) ) )
+ if( !iu )
return 0;
irc->users = g_slist_remove( irc->users, iu );