X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=c796e414768f5727b90b335fb38b0c8406eecd1c;hp=a5116ceadf80c10d8d5256ec4b4d37102550ea74;hb=64ef87442b933d47f4dbc9dfec9a5a16e522c375;hpb=e56ca5b899d3b39c76a9056077729c04c695666b diff --git a/js/euphorik.js b/js/euphorik.js index a5116ce..c796e41 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -31,7 +31,9 @@ var conf = { nbMessageAffiche : 40, // (par page) pseudoDefaut : "", - tempsAffichageMessageDialogue : 4000, // en ms + tempsAffichageMessageDialogue : 4000, // en ms + tempsKick : 15, // en minute + tempsBan : 60 * 24 * 3, // en minutes (3jours) smiles : { "smile" : [/:\)/g, /:-\)/g], "bigsmile" : [/:D/g, /:-D/g], @@ -945,7 +947,7 @@ Client.prototype.ban = function(userId, raison, minutes) // par défaut un ban correspond à 3 jours if (typeof(minutes) == "undefined") - minutes = 60 * 24 * 3 + minutes = conf.tempsBan; jQuery.ajax({ type: "POST", @@ -970,7 +972,7 @@ Client.prototype.ban = function(userId, raison, minutes) Client.prototype.kick = function(userId, raison) { - this.ban(userId, raison, 15) + this.ban(userId, raison, conf.tempsKick) } ///////////////////////////////////////////////////////////////////////////////////////////////////