Jethro commented on a Page, Simple Nick Caller  -  Jun 20, 2010

Yeah WorldDMT. $anick, it is!. I edited the code.

Snoop, of all the nick calling script I've tried. Be that with isin, $istok, $fintok, or the one you use in your example $+(,$me,), the regex beats them all, the main reason being that, isin and $+(,$me,) will get triggered if someone has a similar nick as yours.

Let's say someone has a nick called Snooopy while yours is Snooop, (anything that follows before or after), and since they're wild-card prone, the script will respond to either one of you.

Using $istok and $fintok are slightly better, but it's not as good, because if someone says Snooop[!?,], with any punctuation marks placed behind your nick, your script won't get triggered at all.

The final winner is the regex with the word boundary with \Q and \E and \S strip control codes. They will make sure your nick is called precisely as "snooop" with punctuation marks or not, treating any special characters that you have in your nick literal, and not to be wild-card prone.

 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.