diff options
author | James Booth <boothj5@gmail.com> | 2012-11-27 00:17:35 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-27 00:17:35 +0000 |
commit | 671e7d589f55f259f647ae5553cdfa82a229b250 (patch) | |
tree | de483018573e89501f4bb6ec1c7a22ea2126fedd /src/windows.c | |
parent | 213ccc0150ab50084ddb80721a38a552fff76686 (diff) | |
download | profani-tty-671e7d589f55f259f647ae5553cdfa82a229b250.tar.gz |
Show message on /msg when windows full
Diffstat (limited to 'src/windows.c')
-rw-r--r-- | src/windows.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/windows.c b/src/windows.c index 64a18bd6..f75c0bb9 100644 --- a/src/windows.c +++ b/src/windows.c @@ -166,6 +166,19 @@ ui_load_colours(void) } } +gboolean +ui_windows_full(void) +{ + int i; + for (i = 1; i < NUM_WINS; i++) { + if (windows[i] == NULL) { + return FALSE; + } + } + + return TRUE; +} + void ui_show_typing(const char * const from) { |