X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fchat%2Fcommandes.js;h=fb822aaa4dabd4a75b4b00c38bc6b54998a60b84;hp=dbcc76ab9dbee327949558f6a99fdfa2f07c86a1;hb=cf274dbe8b2049cfb3d2116d9298bfb8c1a38d11;hpb=e49a1c483f1751f129c0766d1061b3da44b60581 diff --git a/js/chat/commandes.js b/js/chat/commandes.js index dbcc76a..fb822aa 100644 --- a/js/chat/commandes.js +++ b/js/chat/commandes.js @@ -25,7 +25,7 @@ * * Voici les commandes supportées : * /nick - * Modifie le pseudo courant + * Modifie le nick courant */ euphorik.Commandes = function(client, pageMinichat, util, formater) { var thisCommandes = this; @@ -50,16 +50,16 @@ euphorik.Commandes.statut = {ok : 0, pas_une_commande : 1, erreur_commande : 2}; euphorik.Commandes.liste = { "nick" : { - description : "Change le pseudo courant", - usage : "/nick ", + description : "Change le nick courant", + usage : "/nick ", exec : function(args, client) { if (args.length === 0) { return [euphorik.Commandes.statut.erreur_commande, 'Utilisation de la commande : ' + this.usage]; } - client.pseudo = args[0]; - $("form#posterMessage input.pseudo").val(client.pseudo); + client.nick = args[0]; + $("form#posterMessage input.nick").val(client.nick); return [euphorik.Commandes.statut.ok, '']; } @@ -105,7 +105,7 @@ euphorik.Commandes.prototype.exec = function(chaine) { this.util.messageDialog( this.texteAide, euphorik.Util.messageType.informatif, - {"fermer" : function(){}}, + {"close" : function(){}}, false, -1 );