diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-02 01:19:06 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-02 01:19:06 +0000 |
commit | b9393e864ba5ad87933004203949cfab692d6d72 (patch) | |
tree | 13312797ece63fc50155b0ada23a82e10b445e6c /src/irc | |
parent | bf61b699da3fd504769714d185943d8bda388dac (diff) | |
download | irssi-b9393e864ba5ad87933004203949cfab692d6d72.zip |
/AWAY <away message> now sets yourself away in all IRC servers.
If you wish to set it only to one server, use /AWAY -one <message>
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@276 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index ea720edb..22a24ebb 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -509,10 +509,10 @@ static void cmd_away(const char *data, IRC_SERVER_REC *server) params = cmd_get_params(data, 2 | PARAM_FLAG_OPTARGS | PARAM_FLAG_GETREST, &args, &reason); - if (stristr(args, "-all") != NULL) - g_slist_foreach(servers, (GFunc) server_send_away, reason); - else + if (stristr(args, "-one")) server_send_away(server, reason); + else + g_slist_foreach(servers, (GFunc) server_send_away, reason); g_free(params); } |