I made a script that lets people enter info. This is what I have:
on $*:text:!/btag add/Si:#:{
if ($0 < 4) { msg # Insufficient parameters: Use !btag add <btag> <svr(s). Seperate multiple with ",". EX: US,EU> | return }
writeini -n btag.ini $+(#,.,$nick) bTag $3
writeini -n btag.ini $+(#,.,$nick) bTagSvr $4
{ msg $chan Added $nick $+ 's BattleTag as $3 on $4 server(s). }
}
Now, it does work correctly, but when someone explains how to add it to their account, say, "Use !btag add blah blah" it will run the command. Is there a way to make it so it makes sure the message starts with "!btag add" before it runs the script and to keep looking for parameters?
This is my first script BTW.