about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 7627e951..78a748aa 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1614,7 +1614,9 @@ _cmd_join(gchar **args, struct cmd_help_t help)
             strcpy(jid_cpy, jid);
             nick = strdup(strtok(jid_cpy, "@"));
         }
-        jabber_join(room, nick);
+        if (!room_is_active(room)) {
+            jabber_join(room, nick);
+        }
         win_join_chat(room, nick);
     }