about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-07-31 19:32:15 +0100
committerJames Booth <boothj5@gmail.com>2013-07-31 19:32:15 +0100
commit992ee280916f4218b4eefb87bc5a53b27e1cc47b (patch)
tree7a7d0699f516e80dbfb87773a8573faba910018b /src
parent92fe3b039672b1e37462ccc32dfeb6a65ad75520 (diff)
parent71f4194513b679ab2f04644700a872ea2c8cb0dd (diff)
downloadprofani-tty-992ee280916f4218b4eefb87bc5a53b27e1cc47b.tar.gz
Merge branch 'master' into nextdev
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 6cf60ce7..e6882553 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -2702,10 +2702,15 @@ _cmd_join(gchar **args, struct cmd_help_t help)
         return TRUE;
     }
 
+    Jid *room_arg = jid_create(args[0]);
+    if (room_arg == NULL) {
+        cons_show_error("Specified room has incorrect format");
+        return TRUE;
+    }
+
     int num_args = g_strv_length(args);
     char *room = NULL;
     char *nick = NULL;
-    Jid *room_arg = jid_create(args[0]);
     GString *room_str = g_string_new("");
     Jid *my_jid = jid_create(jabber_get_fulljid());