diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-07 18:41:45 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-07 18:41:45 +0000 |
commit | c32f492758759c04d8b6239a7862648c9d32c4d8 (patch) | |
tree | 628612ec0d2c431519a0a3741df7e4c6609db7f1 /irc_commands.c | |
parent | 1c2eaa3c99a2e7fbe264b06e559f3d709b9a080d (diff) | |
parent | 0e99548ba9c6ec9c78367e05b676dab90b5261a4 (diff) |
Merging in improved away/status message code.
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/irc_commands.c b/irc_commands.c index 74334ee9..750bbcf5 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -447,7 +447,6 @@ static void irc_cmd_away( irc_t *irc, char **cmd ) { user_t *u = user_find( irc, irc->nick ); char *away = cmd[1]; - account_t *a; if( !u ) return; @@ -474,13 +473,7 @@ static void irc_cmd_away( irc_t *irc, char **cmd ) irc_reply( irc, 305, ":Welcome back" ); } - for( a = irc->accounts; a; a = a->next ) - { - struct im_connection *ic = a->ic; - - if( ic && ic->flags & OPT_LOGGED_IN ) - imc_set_away( ic, u->away ); - } + set_setstr( &irc->set, "away", u->away ); } static void irc_cmd_whois( irc_t *irc, char **cmd ) |