about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-27 00:20:43 +0000
committerJames Booth <boothj5@gmail.com>2012-11-27 00:20:43 +0000
commit828cc8b0c033956fdb4c370dac194dea7145b9ca (patch)
treea3fa4b09b5e6bfaa5cd64c54c96675b81d35fbe1
parent671e7d589f55f259f647ae5553cdfa82a229b250 (diff)
downloadprofani-tty-828cc8b0c033956fdb4c370dac194dea7145b9ca.tar.gz
Show message on /join when windows full
-rw-r--r--src/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 4a177882..1153aad7 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1310,6 +1310,8 @@ _cmd_join(gchar **args, struct cmd_help_t help)
 
     if (conn_status != JABBER_CONNECTED) {
         cons_show("You are not currently connected.");
+    } else if (ui_windows_full()) {
+        cons_bad_show("Windows all used, close a window and try again.");
     } else {
         // if no nick, set to first part of jid
         if (nick == NULL) {