about summary refs log tree commit diff stats
path: root/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-03-01 00:40:51 +0000
committerJames Booth <boothj5@gmail.com>2012-03-01 00:40:51 +0000
commit2acf15de0de6cb42e1dcf08b15a686e05c62b08e (patch)
tree4eb5a5c69fb86aa4643e5ca4cfccad7a5656ac84 /command.c
parent1cc22c23f9db20504b8c5aa0a95e91079a6d88e8 (diff)
downloadprofani-tty-2acf15de0de6cb42e1dcf08b15a686e05c62b08e.tar.gz
Close win now has return value
Diffstat (limited to 'command.c')
-rw-r--r--command.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/command.c b/command.c
index c5ef816c..da2df857 100644
--- a/command.c
+++ b/command.c
@@ -177,11 +177,8 @@ static int _cmd_msg(char *inp)
 
 static int _cmd_close(char *inp)
 {
-    if (win_in_chat()) {
-        win_close_win();
-    } else {
+    if (!win_close_win())
         cons_bad_command(inp);
-    }
     
     return TRUE;
 }