1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -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; int set;
if (g_strcasecmp(data, "ON") == 0) if (*data == '\0')
set = active_win->immortal;
else if (g_strcasecmp(data, "ON") == 0)
set = TRUE; set = TRUE;
else if (g_strcasecmp(data, "OFF") == 0) else if (g_strcasecmp(data, "OFF") == 0)
set = FALSE; set = FALSE;
else if (g_strcasecmp(data, "TOGGLE") == 0) else if (g_strcasecmp(data, "TOGGLE") == 0)
set = !active_win->immortal; set = !active_win->immortal;
else { else {
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, TXT_NOT_TOGGLE); printformat_window(active_win, MSGLEVEL_CLIENTERROR,
TXT_NOT_TOGGLE);
return; return;
} }