diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command/commands.c | 2 |
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; |