about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-12-27 17:25:30 +0000
committerJames Booth <boothj5@gmail.com>2013-12-27 17:25:30 +0000
commit976f3e303a550b9594899bafd4498b531ea7c86e (patch)
treea7538cdc3ec0bd676c80004e6738947f4fd0d262 /src
parentc3fbaf8b2a75fc28df933e5f48fda2e8468b7e80 (diff)
downloadprofani-tty-976f3e303a550b9594899bafd4498b531ea7c86e.tar.gz
Added /sub command test
Diffstat (limited to 'src')
-rw-r--r--src/command/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index c5b253e7..f09bf0e4 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -311,7 +311,6 @@ gboolean
 cmd_sub(gchar **args, struct cmd_help_t help)
 {
     jabber_conn_status_t conn_status = jabber_get_connection_status();
-    win_type_t win_type = ui_current_win_type();
 
     if (conn_status != JABBER_CONNECTED) {
         cons_show("You are currently not connected.");
@@ -337,6 +336,7 @@ cmd_sub(gchar **args, struct cmd_help_t help)
         return TRUE;
     }
 
+    win_type_t win_type = ui_current_win_type();
     if ((win_type != WIN_CHAT) && (jid == NULL)) {
         cons_show("You must specify a contact.");
         return TRUE;