diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-07 00:22:33 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-07 00:22:33 +0000 |
commit | 58adb7e800db87c1e38b810c288f1455654dab3d (patch) | |
tree | 49cabc3f6a615a5ef10b2b06a423e0fd449fb91f /irc_commands.c | |
parent | 34fbbf9c6a80ea7bf5e371c6d36c6ed596b15bd7 (diff) |
Added global and per-account settings "away" and "status" so the user can
set these things individually.
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/irc_commands.c b/irc_commands.c index 74334ee9..0fbaacd1 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -474,13 +474,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 ) |