diff options
author | James Booth <boothj5@gmail.com> | 2014-03-08 00:07:38 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-03-08 00:07:38 +0000 |
commit | f3fe1d34d2608bed06bdf0302656cde5b0107183 (patch) | |
tree | 87e5ba7d5d35666c897337d284271dc23f550bf4 /src | |
parent | d683c49b6c818d1ddb445654b8d11f6f82077a9d (diff) | |
download | profani-tty-f3fe1d34d2608bed06bdf0302656cde5b0107183.tar.gz |
Added connection status tests for cmd_join
Diffstat (limited to 'src')
-rw-r--r-- | src/command/commands.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 9f4882fa..736f2fd3 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1578,8 +1578,6 @@ gboolean cmd_join(gchar **args, struct cmd_help_t help) { jabber_conn_status_t conn_status = jabber_get_connection_status(); - ProfAccount *account = accounts_get_account(jabber_get_account_name()); - if (conn_status != JABBER_CONNECTED) { cons_show("You are not currently connected."); return TRUE; @@ -1597,6 +1595,7 @@ cmd_join(gchar **args, struct cmd_help_t help) char *passwd = NULL; GString *room_str = g_string_new(""); Jid *my_jid = jid_create(jabber_get_fulljid()); + ProfAccount *account = accounts_get_account(jabber_get_account_name()); // full room jid supplied (room@server) if (room_arg->localpart != NULL) { |