Ban Effects

By FordLawnmower on Mar 22, 2009

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> }  
}

Comments

Sign in to comment.
FordLawnmower   -  May 01, 2010

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 }
}
 Respond  
craighton   -  May 01, 2010

Hey Ford i am having trouble with this script because it will show that the ban affected someone who isn't in the channel the ban was set on

 Respond  
mr_president   -  Jun 06, 2009

Oh ok, thanks for clearing that up for me.

 Respond  
FordLawnmower   -  Jun 06, 2009

ial is mircs internal address list. It keeps track of all the nicks/addresses that your client can see. Typing /who #channelname will refresh your ial list for #channelname.

 Respond  
mr_president   -  Jun 05, 2009

Oh ok. But that leeds me to another question. What is a ial.
lol
Sorry to sound like a n00b but i just wanna learn.

 Respond  
FordLawnmower   -  Jun 05, 2009

When someone sets a ban, this will search your ial for matches to the ban and echo the results to the active screen.

 Respond  
mr_president   -  Jun 05, 2009

Er...
I am sorry but i am sorry.
But i am sory of new to sciprting and i am having a little bit of trouble figuring out what this does..
Can someoen explain please?

 Respond  
FordLawnmower   -  Apr 04, 2009

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.

 Respond  
Prelude   -  Apr 04, 2009

ROFL dude idgaf if you spell shyte wrong, hell im lucky to get a sentence out with out misspelling, in the end whoooooooooooooooo gives a damn, ya feel me. Nice snippet anyhow.

 Respond  
FordLawnmower   -  Apr 04, 2009

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>.

 Respond  
Prelude   -  Apr 03, 2009

So edit your snippet, i have no use for this but looks fine and could be handy so 7/10.

 Respond  
FordLawnmower   -  Apr 03, 2009

Thanks irchainscriptz :) Yea, tzar469 I'm illiterate ;/

 Respond  
irchainscriptz   -  Apr 03, 2009

nice snippet!!

 Respond  
tzar469   -  Apr 03, 2009

The correct word is "affect".

 Respond  
FordLawnmower   -  Mar 28, 2009

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
 Respond  
chadbdurham   -  Mar 28, 2009

Use of unnecessary variables, like var %Ban.Chan is easily replaced by $chan itself

 Respond  
FordLawnmower   -  Mar 22, 2009

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 :)

 Respond  
Aucun50   -  Mar 22, 2009

Neat

 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.