From: Greg Burri Date: Sat, 28 Mar 2009 10:01:08 +0000 (+0000) Subject: MOD set the user nick later X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=4696f876c2a6e33619bf688138262fe9d85540f0;p=euphorik.git MOD set the user nick later --- diff --git a/js/pageMinichat.js b/js/pageMinichat.js index abcb72b..aea8e2d 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -242,8 +242,6 @@ euphorik.PageMinichat.prototype.envoyerMessage = function(message) { return; } - this.client.nick = nick; - if (!this.client.authentifie()) { if (!this.client.enregistrement()) { this.util.messageDialog("login impossible"); @@ -258,6 +256,8 @@ euphorik.PageMinichat.prototype.envoyerMessage = function(message) { } this.envoieMessageEnCours = true; + this.client.nick = nick; + this.communication.requete( "put_message", this.getJSONMessage(nick, message),