projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MOD french -> english (2)
[euphorik.git]
/
js
/
pageMinichat
/
commandes.js
diff --git
a/js/pageMinichat/commandes.js
b/js/pageMinichat/commandes.js
index
014b9bb
..
dbcc76a
100644
(file)
--- a/
js/pageMinichat/commandes.js
+++ b/
js/pageMinichat/commandes.js
@@
-27,20
+27,20
@@
* /nick <nouveau nick>
* Modifie le pseudo courant
*/
* /nick <nouveau nick>
* Modifie le pseudo courant
*/
-euphorik.Commandes = function(client, pageMinichat, util, formate
u
r) {
+euphorik.Commandes = function(client, pageMinichat, util, formater) {
var thisCommandes = this;
this.client = client;
this.pageMinichat = pageMinichat;
this.util = util;
var thisCommandes = this;
this.client = client;
this.pageMinichat = pageMinichat;
this.util = util;
- this.formate
ur = formateu
r;
+ this.formate
r = formate
r;
// 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) {
// 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.formate
ur.traitementComplet(commande.usage) + "</span> : " + thisCommandes.formateu
r.traitementComplet(commande.description) + "</li>";
+ thisCommandes.texteAide += "<li><span class=\"usage\">" + thisCommandes.formate
r.traitementComplet(commande.usage) + "</span> : " + thisCommandes.formate
r.traitementComplet(commande.description) + "</li>";
}
);
this.texteAide += "</ul></div>";
}
);
this.texteAide += "</ul></div>";
@@
-71,6
+71,14
@@
euphorik.Commandes.liste = {
pageMinichat.envoyerMessage("C'est pas faux");
return [euphorik.Commandes.statut.ok, ''];
}
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") {
}
// commandes spéciales pour afficher l'aide : "?", "h", "help", "aide"
if (nomCommande === "?" || nomCommande === "h" || nomCommande === "help" || nomCommande === "aide") {
- this.util.messageDialog
ue
(
+ this.util.messageDialog(
this.texteAide,
euphorik.Util.messageType.informatif,
{"fermer" : function(){}},
this.texteAide,
euphorik.Util.messageType.informatif,
{"fermer" : function(){}},