IFHTT commented on a Page, Easy antispam script  -  Sep 05, 2008

DangerOfFate, Your recommendation is rather pointless

The original if statement says if the nick is op'ed on the channel OR the nick is me then halt the script.

Your first if statement says if i'm an op on the channel then halt the script which would result in the script not working period if you were op'ed

Your second recommendation says if the nick is op'ed on the channel AND the nick is me then halt the script.

This would do the exact same thing as your first recommendation and would render the script useless. In this case || is the correct way to combine the comparisons.

napalm`s code is closer to ideal. Only "&& ($nick != $me)" isn't necessary since it will only trigger if you have ops in the channel anyway, so "if ($nick !isop #)" would cover it, though it will still work just fine.

 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.