aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-04-15 15:39:35 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-04-15 15:39:35 -0700
commitc2fb38096ea4e75a680e57e103d4a4986aa84c75 (patch)
treed0a8fd0a602867dd6dc406bdc8206fa049ba757e /irc.c
parentcd4723c257f9f7bd8d4a46c6562f93c2aefc3dbb (diff)
Cleaned up struct im_connection. No more username/password stuff since
it's in acc too. wants_to_die is now an argument to imc_logout().
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/irc.c b/irc.c
index a78a0153..08ffa753 100644
--- a/irc.c
+++ b/irc.c
@@ -230,8 +230,7 @@ void irc_free(irc_t * irc)
for (account = irc->accounts; account; account = account->next) {
if (account->ic) {
- account->ic->wants_to_die = TRUE;
- imc_logout(account->ic);
+ imc_logout(account->ic, TRUE);
} else if (account->reconnect) {
cancel_auto_reconnect(account);
}
@@ -915,7 +914,7 @@ void irc_kill( irc_t *irc, user_t *u )
if( u->ic->acc->server )
g_snprintf( reason, sizeof( reason ), "%s %s", irc->myhost,
u->ic->acc->server );
- else if( ( s = strchr( u->ic->username, '@' ) ) )
+ else if( ( s = strchr( u->ic->acc->user, '@' ) ) )
g_snprintf( reason, sizeof( reason ), "%s %s", irc->myhost,
s + 1 );
else