From b9393e864ba5ad87933004203949cfab692d6d72 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 2 Jun 2000 01:19:06 +0000 Subject: /AWAY now sets yourself away in all IRC servers. If you wish to set it only to one server, use /AWAY -one git-svn-id: http://svn.irssi.org/repos/irssi/trunk@276 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/irc') 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); } -- cgit v1.2.3