diff options
author | James Booth <boothj5@gmail.com> | 2013-01-11 23:52:01 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-11 23:52:01 +0000 |
commit | e073b69a9857fb5cb2bacb7c82006e4ce3bf9c05 (patch) | |
tree | bcdc00e360985e02f126dc0e7e7a405b8a614e0d | |
parent | d29c7fd87839bda67d55e349184582490a517809 (diff) | |
download | profani-tty-e073b69a9857fb5cb2bacb7c82006e4ce3bf9c05.tar.gz |
If chat room already joined, just show window
-rw-r--r-- | src/command.c | 4 |
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); } |