1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

"/WINDOW IMMORTAL" shows the mortal-state. Error messages are printed in

active window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2428 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-11 07:58:24 +00:00 committed by cras
parent 64e98b7f4a
commit d883248be2

View File

@ -346,14 +346,17 @@ static void cmd_window_immortal(const char *data)
{
int set;
if (g_strcasecmp(data, "ON") == 0)
if (*data == '\0')
set = active_win->immortal;
else if (g_strcasecmp(data, "ON") == 0)
set = TRUE;
else if (g_strcasecmp(data, "OFF") == 0)
set = FALSE;
else if (g_strcasecmp(data, "TOGGLE") == 0)
set = !active_win->immortal;
else {
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, TXT_NOT_TOGGLE);
printformat_window(active_win, MSGLEVEL_CLIENTERROR,
TXT_NOT_TOGGLE);
return;
}