Very insecure.. somebody can type in
\"url $cr quit\"
and it will make the bot quit IRC because it parses $cr as a new command line. To fix this use the n switch in the $read function. Sure this willt ake away bold and colors but it makes it that much secure from identifier attacks. You could always just replace the bold tags with [b] and reparse it when it\'s called via the alias.
For parsing as text (eliminates calling of identifiers): $read(quote.txt,n)
Also Comment out the top part describing the addon.
You also don\'t need the \'/\' before each command.
You also don\'t need the \'/\' infront of commands. mIRC automatically puts a \'/\' infront of commands so there\'s no use for it. Also the alias script is too.. not well designed...It can be shorter:
alias script {
set %script $iif($1 == on,on,off)
echo -a 4Your script is now $+(%script,-line!)
}
:)
In response to Sasuke...
My exmple was to prove that this can be done for any word the user inputs.. instead of having a huge list of words, which is alot, and just constantly doing $replace on them..