From 976f3e303a550b9594899bafd4498b531ea7c86e Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 27 Dec 2013 17:25:30 +0000 Subject: Added /sub command test --- src/command/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit 1.4.1-2-gfad0