about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index e6d575f5..5e594184 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1656,16 +1656,13 @@ cmd_join(gchar **args, struct cmd_help_t help)
         nick = account->muc_nick;
     }
 
-    Jid *room_jid = jid_create_from_bare_and_resource(room, nick);
-
-    if (!muc_room_is_active(room_jid)) {
+    if (!muc_room_is_active(room)) {
         presence_join_room(room, nick, passwd);
     }
     ui_room_join(room);
     muc_remove_invite(room);
 
     jid_destroy(room_arg);
-    jid_destroy(room_jid);
     g_string_free(room_str, TRUE);
     account_free(account);