Easy Ban Protection v2.0

By Kb
Published  Jul 26, 2007
Updated 
0  7

Description

Easy Ban Protection will protect you as an OPerator (@) of a channel from getting banned from other OPerator's (@).

Download

Filename
Size
Date
Downloads
2.97 KB
Jul 26, 2007
55

Comments

Sign in to comment.
Jethro   -  Mar 21, 2011

Yes apparently, Scott. But Merbo resurrected it, probably when he conducted a snippet search and couldn't help but make a comment. Then before we knew it, one thing led to another...

 Respond  
Hawkee   -  Mar 21, 2011

Did you guys notice this script was posted back in 2007?

 Respond  
Jethro   -  Mar 18, 2011

Merbo wrote:> $$?="Reason:" means it is allowed to be $null. An extra $ allows any identifier to be null.Did you make that up by yourself? You have 'em confused the other way around.

Without the extra $, it'd be $null if no value is supplied upon trigger as jaytea has demonstrated. You should use the $$?

If you want to use the single dollar sign, you ABSOLUTELY must make sure the value is specified upon the trigger of popup command prompt. Otherwise once you click ok, it'll return $null.

 Respond  
Merbo   -  Mar 18, 2011

jaytea, I just noticed I had it that way. I need to get my facts straight XD

 Respond  
SoulMuncher   -  Mar 12, 2011

this is good

 Respond  
jaytea   -  Mar 12, 2011

Merbo, you have it roughly backwards. the extra '$' will, if no value is returned, make mIRC abruptly end execution of the current routine without returning to the caller (it is precisely an implicit /halt without the side effect of /haltdef):

//echo -a * $?="Reason:" | echo -a next line

vs.

//echo -a * $$?="Reason:" | echo -a next line

the second will not proceed with the next echo if 'Cancel' is clicked.

 Respond  
Merbo   -  Mar 12, 2011

You know, you can make it NOT specify a reason. Kicks don't need reasons. In scripting, when you have something like $?="Reason:" It will force a reason. However, $$?="Reason:" means it is allowed to be $null. An extra $ allows any identifier to be null.

 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.