X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;ds=sidebyside;f=js%2Fchat%2Fcommandes.js;h=5aec5d5ee9f78cb73e53aea3d0d7f100c8155c9e;hb=24ed7a141aa345454300dd260bbabae3a9f92408;hp=fb822aaa4dabd4a75b4b00c38bc6b54998a60b84;hpb=ab6de4c6baf1feb8f35e0bf45867315899777bdc;p=euphorik.git
diff --git a/js/chat/commandes.js b/js/chat/commandes.js
index fb822aa..5aec5d5 100644
--- a/js/chat/commandes.js
+++ b/js/chat/commandes.js
@@ -39,7 +39,7 @@ euphorik.Commandes = function(client, pageMinichat, util, formater) {
this.texteAide = "
Commandes
";
objectEach(
euphorik.Commandes.liste,
- function(nom, commande) {
+ function(name, commande) {
thisCommandes.texteAide += "- " + thisCommandes.formater.traitementComplet(commande.usage) + " : " + thisCommandes.formater.traitementComplet(commande.description) + "
";
}
);
@@ -94,14 +94,14 @@ euphorik.Commandes.prototype.exec = function(chaine) {
return [euphorik.Commandes.statut.pas_une_commande, ''];
}
- var nomCommande = fragments[0].slice(1);
+ var commandName = fragments[0].slice(1);
var args = fragments.slice(1);
- if (nomCommande === "") {
+ if (commandName === "") {
return [euphorik.Commandes.statut.erreur_commande, 'La commande est vide'];
}
// commandes spéciales pour afficher l'aide : "?", "h", "help", "aide"
- if (nomCommande === "?" || nomCommande === "h" || nomCommande === "help" || nomCommande === "aide") {
+ if (commandName === "?" || commandName === "h" || commandName === "help" || commandName === "aide") {
this.util.messageDialog(
this.texteAide,
euphorik.Util.messageType.informatif,
@@ -112,9 +112,9 @@ euphorik.Commandes.prototype.exec = function(chaine) {
return [euphorik.Commandes.statut.ok, ''];
}
- if (euphorik.Commandes.liste.hasOwnProperty(nomCommande)) {
- return euphorik.Commandes.liste[nomCommande].exec(args, this.client, this.pageMinichat);
+ if (euphorik.Commandes.liste.hasOwnProperty(commandName)) {
+ return euphorik.Commandes.liste[commandName].exec(args, this.client, this.pageMinichat);
}
- return [euphorik.Commandes.statut.erreur_commande, 'La commande /' + nomCommande + ' est inconnue'];
+ return [euphorik.Commandes.statut.erreur_commande, 'La commande /' + commandName + ' est inconnue'];
};