17/04/2014, 13:01 (Modification du message : 17/04/2014, 19:50 par MenzAgitat.)
Description
Ce script enverra un message informatif à quiconque tentera de taper une commande en couleur, gras, souligné, ou avec un espace indésirable avant ou après.
Ce message est destiné à rappeler aux utilisateurs quelques règles de base pour utiliser les commandes sur IRC, et ainsi éviter les commentaires comme :
Citation :<MenzAgitat> !test
-Eggdrop- ::: Vous avez utilisé des codes de styles dans une commande (couleurs, gras, soulignement, etc...). Veuillez notez que certaines commandes ne fonctionneront pas dans ces conditions. Merci d'écrire normalement.
<MenzAgitat> !test
-Eggdrop- ::: Un espace en trop a été détecté devant votre commande. Veuillez noter que certaines commandes ne fonctionneront pas avec un espace devant.
<MenzAgitat> !test
-Eggdrop- ::: Un espace en trop a été détecté à la fin de votre ligne de commande. Veuillez noter que cela peut perturber voire empêcher le fonctionnement correct de certaines commandes.
Changelog
Citation :v1.0
1ère version
v1.01
Correction : un bug dans le code provoquait une erreur.
Very usefull script indeed, but can be improved more meaning like:
user: botnick test or
user: botnick !test
and the message will also be sent to user? It's more for those Who have more than 1 eggdrop-bot in a channel. Thank you again for your time in making these scripts better.
I mean if i have 2 eggdrops in channel and i want only 1 to reply, even if the flag is enabled on both of them. It shows clearly that the script works on the command given in channel, without the eggdrops' nickname in front of the command. My suggestion was if can be modified that if the botnick is mentioned, the script will function as wanted.
Example:
<StormG> Eggdrop test
<Eggdrop> Vous avez utilisé des codes de styles dans une commande (couleurs, gras, soulignement, etc...). Veuillez notez que certaines commandes ne fonctionneront pas dans ces conditions. Merci d'écrire normalement.
or:
<StormG> Eggdrop !test
<Eggdrop> Vous avez utilisé des codes de styles dans une commande (couleurs, gras, soulignement, etc...). Veuillez notez que certaines commandes ne fonctionneront pas dans ces conditions. Merci d'écrire normalement.
Hope it's more clear this time, and thanks for the quick reply.
18/04/2014, 21:22 (Modification du message : 18/04/2014, 22:12 par MenzAgitat.)
If you have installed / activated the script on both Eggs and you want only one of them to react, you can change the flag's name in the script of one Egg (only one).
Look for the line :
tcl
setudef flag NCNSBC
and replace NCNSBC by what you want.
Edit :
Uh no, forget about that, that's stupid.
Actually, it will require some changes in the code.
Such a modification is terribly specific to your own use and I'm not sure I want to do that. Sorry.
Moreover, why the hell do you need to put 2 Eggs with the same script on the same chan ?