* Don't use excessive Braces { } where you don't need them, and you only need them when there's more then one line in the command.
The { Brace means "Begin" and the } Brace means "End" so if there's only one line to the event or command, you don't need to give the script a beginning and end command.
For example:
ON *:text:*:*: { if ($nick = Blah) { do something here } }
Which the scrip reads like this: ON *:text:*:*: Begin-event if ($nick = Blah) Begin-if do something here End-if End-event
So as you see, you don't need to tell it where to begin and end if there's only one line.
So this would better:
ON *:text:*:*: if ($nick = Blah) do something here
Now besides the fact that it's useless to put excessive Braces, they all use more CPU.
That's because the { Begin Brace is actually a command that calls a procedure to check for the } End Brace (and run all the commands between of course).
It doesn't take a lot of CPU of course, but it's about the same amount as calling an alias (see "Saving CPU/memory usage").
Advance Scripting Tips by Yochai uploaded in mircscripts.org
http://www.mircscripts.org/comments.php?cid=2778 Wrong. The { bracket ISN'T a command to "search for another } bracket and..."
The { bracket is a command to, execute all uncomented commands and statements untill it finds a } bracket. It looses time by reading the next line.
Proof?
If what you're saying is right, then the above will NOT work. It does.