raccoon commented on a Page, r_highlightspam.mrc Highlight Spam Blocker  -  May 01, 2010

WorldDMT:
- the braces makes the code slower
What braces are you referring to?

- for the /var u can use just one /var %var1 x,%var2 x,%varN ...
Yes, I can do that, but as convention I leave them as one-per-line when they are referencing $1, $2, $3... to improve readability. They are non-essential variables in the first place. Also, in support of your speed concern above, variables declare a smidge faster on separate lines than if put together on the same line (trivial, i don't care either way, just fyi).

- u can use only one alias
Yes, I know. I made it modular so the code could be easily read, modified, and adjusted without too much confusion. The majority of people using it have never scripted before, and can only read what is put in front of them. My method makes it harder to break the script if modified, and makes it easier to "talk someone through it".

I will post an "abbreviated version" when I get around to it.

PS. In your example, you want to include /break right after /haltdef, or replace it with /halt. Otherwise the loop will continue with %cnt > 5 and repeatedly kick/ignore a hundred more times.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.