aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-03-07 00:22:33 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-03-07 00:22:33 +0000
commit58adb7e800db87c1e38b810c288f1455654dab3d (patch)
tree49cabc3f6a615a5ef10b2b06a423e0fd449fb91f /irc_commands.c
parent34fbbf9c6a80ea7bf5e371c6d36c6ed596b15bd7 (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.c8
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 )