X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=9bf96fb1f547da10daf8765d6348861cd916b4df;hp=7e611db931aff3b9785581f5b830bebd15c79605;hb=68e2e2bddfdb752e4a0cf0fc681388d3a90b80f5;hpb=7ade6a3495cd5c74c964df5ed794e110e770ed9d diff --git a/js/euphorik.js b/js/euphorik.js index 7e611db..9bf96fb 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -31,7 +31,7 @@ var conf = { versionProtocole : 3, // version du protcole nickDefaut : "", - nbMessageAffiche : 10, // (par page) + nbMessageAffiche : 60, // (par page) pseudoDefaut : "", tempsAffichageMessageDialogue : 4000, // en ms tempsKick : 15, // en minute @@ -43,6 +43,7 @@ var conf = { "cool" : [/8\)/g, /8-\)/g], "eheheh" : [/:P/g, /:-P/g], "lol" : [/\[-lol\]/g], + "petrus" : [/:F/g], "spliff" : [/\[-spliff\]/g], "oh" : [/:o/g, /:O/g], "heink" : [/\[-heink\]/g], @@ -602,7 +603,8 @@ Client.prototype.resetDonneesPersonnelles = function() // les conversations, une conversation est un objet possédant les attributs suivants : // - root (entier) // - page (entier) - this.conversations = new Array() + // - reduit (bool) + this.conversations = [] } Client.prototype.setCss = function(css) @@ -665,7 +667,7 @@ Client.prototype.ajouterConversation = function(racine) if (this.conversations[i].root == racine) return false - this.conversations.push({root : racine, page : 1}) + this.conversations.push({root : racine, page : 1, reduit : false}) if (this.autoflush) this.flush(true) return true @@ -844,7 +846,11 @@ Client.prototype.connexion = function(messageJson) function(data) { if (data["reply"] == "error") + { thisClient.util.messageDialogue(data["error_message"]) + // suppression du cookie actuel, cas où le cookie du client ne permet pas une authentification + thisClient.delCookie() + } else thisClient.chargerDonnees(data) }