X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2FpageMinichat%2Fcommandes.js;h=dbcc76ab9dbee327949558f6a99fdfa2f07c86a1;hb=d6dcd0fd8af56bd4791aa4e621c2e5058033c37a;hp=014b9bbba6d72f596b3b110328a803ab5149ccd6;hpb=8ee1535f5594573931ddaebee77bf6148a5358cb;p=euphorik.git diff --git a/js/pageMinichat/commandes.js b/js/pageMinichat/commandes.js index 014b9bb..dbcc76a 100644 --- a/js/pageMinichat/commandes.js +++ b/js/pageMinichat/commandes.js @@ -27,20 +27,20 @@ * /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 = "

Commandes

"; @@ -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(){}},