diff --git a/scripts/communications.js b/scripts/communications.js index 8b58bc7..490ac90 100644 --- a/scripts/communications.js +++ b/scripts/communications.js @@ -359,6 +359,22 @@ function connect(profile, connection_id) // Switch to this chat profile_switch_to(connection_id); } + + // New user + if(data.mode == "new_user") + { + console.log("User signed up") + + // Set the data + g.users[data.user] = data.data; + + // Is this screen active + if(active_profile == connection_id) + { + // Refresh this profile + profile_switch_to(connection_id); + } + } } }); });