about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-11 23:52:01 +0000
committerJames Booth <boothj5@gmail.com>2013-01-11 23:52:01 +0000
commite073b69a9857fb5cb2bacb7c82006e4ce3bf9c05 (patch)
treebcdc00e360985e02f126dc0e7e7a405b8a614e0d
parentd29c7fd87839bda67d55e349184582490a517809 (diff)
downloadprofani-tty-e073b69a9857fb5cb2bacb7c82006e4ce3bf9c05.tar.gz
If chat room already joined, just show window
-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);
     }