This little snipit echo's the matches from your ial to bans as they are set. A address is only normally in your ial if they are in a common channel with you, so users not in common channels with you will not show up.
To use: Just paste into a remote and wait for a ban. The script will display all matches to the ban, from your ial. If no match, it will display, Matches NoOne!
On *:Ban:#: {
var %Ban.Count = $ial($remove($banmask,~n:,~q:),0), %Ban.Addy = $remove($banmask,~n:,~q:), %Ban.Chan = $chan, %Ban.Match
while (%Ban.Count) {
%Ban.Match = %Ban.Match $ial(%Ban.Addy,%Ban.Count).nick
dec %Ban.Count
}
if (%Ban.Match) { echo -t %Ban.Chan 06<07**04Ban07**06> <04Effects09 $replace(%Ban.Match,$chr(32),06 $+ $chr(7) $+ 09) $+ 06> }
else { echo -t %Ban.Chan 06<07**04Ban07**06> <04Effects NoOne in %Ban.Chan $+ 06> }
}
Wow, old code ;/
Sure try this craighton:
On *:Ban:#: {
var %banmask $remove($banmask,~n:,~q:), %blogo 06<07**04Ban07**06> <04Effects06>09
if ($regsubex($str(.,$ialchan(%banmask,$chan,0)),/(\.)/g,$+($chr(32),$ialchan(%banmask,$chan,\n).nick))) {
echo -t $chan %blogo $v1
}
else { echo -t $chan %blogo NoOne in $chan }
}
Thanks Prelude :)
[14:48:09] effect by skwirel
[14:48:09] effect effect is one of the most widely misused words in the English vocabulary; mainly because of its counter-part, the word affect.
[14:48:09] ** effect 1. The Effect of drinking too much beer is waking up and finding a semi-nude manatee-sized woman laying in bed next to you.
So edit your snippet, i have no use for this but looks fine and could be handy so 7/10.
Hahahaha!! I'm not changing it!!! This is not english class!!usage Effect and affect are often confused because of their similar spelling and pronunciation. The verb 2affect usually has to do with pretense . The more common 3affect denotes having an effect or influence <the weather affected everyone's mood>. The verb effect goes beyond mere influence; it refers to actual achievement of a final result . The uncommon noun affect, which has a meaning relating to psychology, is also sometimes mistakenly used for the very common effect. In ordinary use, the noun you will want is effect <the weather had an effect on everyone's mood>.
I made the variables here because the script was unable to keep up with the joins across the 60 channels that I'm in. During really busy hours, it was displaying the wrong information in the wrong channels. Temporary variables that only exist in that instance of this alias proved to be error free, no matter how many joins it encountered.
Use of unnecessary variables, like var %Ban.Chan is easily replaced by $chan itself
Of course, I already know this ;/
%Ban.Chan = $chan
Thanks Aucun50 :) It's not an original idea. I saw it on another script and decided to sit down and figure out how to script it. The script I first saw it on was written by RedBu||. Not sure how he did it, but using $ial will not cause your client to lag like some other methods I considered. $ial is almost instant, so it's like magic :)