projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MOD mineurs
[euphorik.git]
/
js
/
euphorik.js
diff --git
a/js/euphorik.js
b/js/euphorik.js
index
7e611db
..
9bf96fb
100755
(executable)
--- a/
js/euphorik.js
+++ b/
js/euphorik.js
@@
-31,7
+31,7
@@
var conf = {
versionProtocole : 3, // version du protcole
nickDefaut : "<nick>",
var conf = {
versionProtocole : 3, // version du protcole
nickDefaut : "<nick>",
- nbMessageAffiche :
1
0, // (par page)
+ nbMessageAffiche :
6
0, // (par page)
pseudoDefaut : "<nick>",
tempsAffichageMessageDialogue : 4000, // en ms
tempsKick : 15, // en minute
pseudoDefaut : "<nick>",
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],
"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],
"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)
// 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)
}
Client.prototype.setCss = function(css)
@@
-665,7
+667,7
@@
Client.prototype.ajouterConversation = function(racine)
if (this.conversations[i].root == racine)
return false
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
if (this.autoflush) this.flush(true)
return true
@@
-844,7
+846,11
@@
Client.prototype.connexion = function(messageJson)
function(data)
{
if (data["reply"] == "error")
function(data)
{
if (data["reply"] == "error")
+ {
thisClient.util.messageDialogue(data["error_message"])
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)
}
else
thisClient.chargerDonnees(data)
}