diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-11 07:58:24 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-11 07:58:24 +0000 |
commit | d883248be22c90d4d1fb061ea5665c5c258f73b9 (patch) | |
tree | 1a564a0c625daadff7b5791fe918e47a7c63d035 /src | |
parent | 64e98b7f4a9c2f4232d88f0c8e9d9f5e317fd6b7 (diff) | |
download | irssi-d883248be22c90d4d1fb061ea5665c5c258f73b9.zip |
"/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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/window-commands.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c index e54478d7..2accad9d 100644 --- a/src/fe-common/core/window-commands.c +++ b/src/fe-common/core/window-commands.c @@ -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; } |