MOD french -> english (2)
[euphorik.git] / js / pageMinichat / commandes.js
index 014b9bb..dbcc76a 100644 (file)
   *  /nick <nouveau nick>
   *  Modifie le pseudo courant
   */
-euphorik.Commandes = function(client, pageMinichat, util, formateur) {
+euphorik.Commandes = function(client, pageMinichat, util, formater) {
    var thisCommandes = this;
 
    this.client = client;
    this.pageMinichat = pageMinichat;
    this.util = util;
-   this.formateur = formateur;
+   this.formater = formater;
    
    // construction du texte d'aide (liste des commandes) de manière statique
    this.texteAide = "<div id=\"aideCommandes\"><h1>Commandes</h1><ul>";
    objectEach(
       euphorik.Commandes.liste,
       function(nom, commande) {
-         thisCommandes.texteAide += "<li><span class=\"usage\">" + thisCommandes.formateur.traitementComplet(commande.usage) + "</span> : " + thisCommandes.formateur.traitementComplet(commande.description) + "</li>";
+         thisCommandes.texteAide += "<li><span class=\"usage\">" + thisCommandes.formater.traitementComplet(commande.usage) + "</span> : " + thisCommandes.formater.traitementComplet(commande.description) + "</li>";
       }
    );
    this.texteAide += "</ul></div>";
@@ -71,6 +71,14 @@ euphorik.Commandes.liste = {
          pageMinichat.envoyerMessage("C'est pas faux");
          return [euphorik.Commandes.statut.ok, ''];
       }
+   },
+   "osef" : {
+      description : "Envoie le message \"On s'en fout !\"",
+      usage : "/osef",
+      exec : function(args, client, pageMinichat) {
+         pageMinichat.envoyerMessage("On s'en fout !");
+         return [euphorik.Commandes.statut.ok, ''];
+      }
    }
 };
 
@@ -94,7 +102,7 @@ euphorik.Commandes.prototype.exec = function(chaine) {
    }
    // commandes spéciales pour afficher l'aide : "?", "h", "help", "aide"
    if (nomCommande === "?" || nomCommande === "h" || nomCommande === "help" || nomCommande === "aide") {
-      this.util.messageDialogue(
+      this.util.messageDialog(
          this.texteAide,
          euphorik.Util.messageType.informatif,
          {"fermer" : function(){}},