1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

/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
This commit is contained in:
Timo Sirainen 2000-06-02 01:19:06 +00:00 committed by cras
parent bf61b699da
commit b9393e864b

View File

@ -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);
}