about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-11 01:05:59 +0000
committerJames Booth <boothj5@gmail.com>2013-01-11 01:05:59 +0000
commit1cc5353697ddf3e5b441238ffe2d814d5d2e95b9 (patch)
treec9825003a725f7bb10f2296ba0e912c3f9d38b0a /src/command.c
parent62c102860c48bff5ceb9e7c701173de6749b49ee (diff)
downloadprofani-tty-1cc5353697ddf3e5b441238ffe2d814d5d2e95b9.tar.gz
Added win_current_is_console()
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 6fbcb6c5..9310c7d9 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1661,8 +1661,7 @@ _cmd_close(gchar **args, struct cmd_help_t help)
     jabber_conn_status_t conn_status = jabber_get_connection_status();
 
     // cannot close console window
-    if (!win_current_is_chat() && !win_current_is_groupchat()
-            && !win_current_is_private()) {
+    if (win_current_is_console()) {
         cons_show("Cannot close console window.");
         return TRUE;
     }