From e073b69a9857fb5cb2bacb7c82006e4ce3bf9c05 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 11 Jan 2013 23:52:01 +0000 Subject: If chat room already joined, just show window --- src/command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/command.c') 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); } -- cgit 1.4.1-2-gfad0