Added /sub command test

This commit is contained in:
James Booth
2013-12-27 17:25:30 +00:00
parent c3fbaf8b2a
commit 976f3e303a
5 changed files with 38 additions and 1 deletions

View File

@@ -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;