about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scripts/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/main.js b/scripts/main.js
index 2cb124c..7f9bc8d 100644
--- a/scripts/main.js
+++ b/scripts/main.js
@@ -49,7 +49,7 @@
 		}
 
 		// TODO: proper error checking / display / Creation of invitations
-		if (jid.search("@") <= 0) return {jid:"", name: "Somebody"};
+		if (jid.search("@") <= 0) return {jid:jid, jid_encoded:jid, name: jid};
 
 		var name = jid.split("@")[0];
 		name = name.charAt(0).toUpperCase() + name.slice(1);