diff options
author | James Booth <boothj5@gmail.com> | 2012-03-01 00:40:51 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-03-01 00:40:51 +0000 |
commit | 2acf15de0de6cb42e1dcf08b15a686e05c62b08e (patch) | |
tree | 4eb5a5c69fb86aa4643e5ca4cfccad7a5656ac84 /command.c | |
parent | 1cc22c23f9db20504b8c5aa0a95e91079a6d88e8 (diff) | |
download | profani-tty-2acf15de0de6cb42e1dcf08b15a686e05c62b08e.tar.gz |
Close win now has return value
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 5 |
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; } |