Im almost done but i found out i got problems with people using [] brackets in their nickname, like [leet] .. it is just totally messing my script

and yes i tried to search before posting, i only found some help for [expr] double evaluate.. i tried to use {} like {$nick} to prevent double evaluation but it didn't worked, i tried some commands on my bot with [die] as nickname, eggdrop disconnecting with some of them (commands) lol

yeah i found thats funny, easy way to mess a bot

but i wanna protect my script from this, how can i stop my script from evaluating a $nick as a command ? i don't wanna trim those [] by the way, i guess there is another way..
Thanks for any help, sorry for my weird english
