summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-11 07:58:24 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-11 07:58:24 +0000
commitd883248be22c90d4d1fb061ea5665c5c258f73b9 (patch)
tree1a564a0c625daadff7b5791fe918e47a7c63d035 /src/fe-common
parent64e98b7f4a9c2f4232d88f0c8e9d9f5e317fd6b7 (diff)
downloadirssi-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/fe-common')
-rw-r--r--src/fe-common/core/window-commands.c7
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;
}