Ban/Extended Ban Matching Snippet

By Desolator on Mar 01, 2006

Open your mirc remotes (ALT + R Together) click on file then new,

copy and paste the entire code into your remotes, click on file, then save and exit.

Click on " yes " when you get the warning, and it is done..

To Use,

To Scan Current Window/Room:
Simply type /matchban banmaskhere/Extendedbanmaskhere
EG: /matchban !eggdrop@
EG: /matchban ~q:!@chanops

[23:41:03] >> somenick Matches Ban Mask (!eggdrop@)

To Scan Another Window/Room (must be in it to work):
Simply type /matchban banmaskhere/Extendedbanmaskhere
EG: /matchban #windowname !eggdrop@
EG: /matchban #windowname ~q:!@chanops

[23:42:59] >> somenick Matches Ban Mask (~q:!@chanops) On #ophelp

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;  Automatic Ban Matcher (Uses Raw 352 - Handles Ex Bans)    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;  Suggestions / Bug Reports Welcome Memo Me Desolator       ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;  Support Only Given If Addon Is Returned To Me UNTOUCHED  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;  Idea & Codes By Desolator                                                    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

menu channel {
  -
  $chr(171) $+ $chr(187)  Find Users Matching Ban Mask $chr(171) $+ $chr(187):{
    matchban $$?="Enter #channel + ban mask for another channel, or just the banmask to scan $active :"
  }
}

alias matchban { 
  if ($chr(35) !isin $1) {
    if ($chr(35) isin $active) {
      if (!$hget(rawcontrols)) { hmake rawcontrols 20 }     
      if (!$hget(rawcontrols,$active)) {
        //hadd rawcontrols $active active  
        //hadd rawcontrols $active $+ local active        
        set %banmaskmatch $1
        //who $active
      }
    } 
    else { echo -a 6,1 $+ $timestamp >> Error! Ban Matching Can Only Be Used In Channel Windows! | halt }
  }
  else { 
    if ($me ison $1) {   
      if (!$hget(rawcontrols)) { hmake rawcontrols 20 }     
      if (!$hget(rawcontrols,$1)) {
        //hadd rawcontrols $1 active       
        //hadd rawcontrols $1 $+ global active 
        set %banmaskmatch $2
        //who $1  
      }
    }  
    else { echo -a  6,1 $+ $timestamp >> Error! Ban Matching Can Only Be Used On Channels Your In | halt }
  }
}

raw 352:*:{
  if ($hget(rawcontrols,$2) == active) {
    haltdef
    if ($chr(58) !isin %banmaskmatch) {
      if (%banmaskmatch iswm $address($6,5)) { 
        if ($hget(rawcontrols,$2 $+ local) == active) { echo $2 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) | halt } 
        if ($hget(rawcontrols,$2 $+ global) == active) { echo -a 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) On $2 | halt }
      }
    }    
    else {
      if ($gettok($gettok(%banmaskmatch, 1, 58), 1, 126) === r) { 
        if ($gettok(%banmaskmatch, 2, 58) iswm $9) { 
          if ($hget(rawcontrols,$2 $+ local) == active) { echo $2 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) | halt }
          if ($hget(rawcontrols,$2 $+ global) == active) { echo -a 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) On $2 | halt }
        }
      }      
      if ($gettok($gettok(%banmaskmatch, 1, 58), 1, 126) === q) { 
        if ($gettok(%banmaskmatch, 2, 58) iswm $address($6,5)) { 
          if ($hget(rawcontrols,$2 $+ local) == active) { echo $2 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) | halt }
          if ($hget(rawcontrols,$2 $+ global) == active) { echo -a 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) On $2 | halt }
        }
      }
      if ($gettok($gettok(%banmaskmatch, 1, 58), 1, 126) === n) { 
        if ($gettok(%banmaskmatch, 2, 58) iswm $address($6,5)) {
          if ($hget(rawcontrols,$2 $+ local) == active) { echo $2 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) | halt }
          if ($hget(rawcontrols,$2 $+ global) == active) { echo -a 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) On $2 | halt } 
        } 
      }
      if ($gettok($gettok(%banmaskmatch, 1, 58), 1, 126) === v) { 
        if ($gettok(%banmaskmatch, 2, 58) iswm $address($6,5)) {
          if ($hget(rawcontrols,$2 $+ local) == active) { echo $2 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) | halt }
          if ($hget(rawcontrols,$2 $+ global) == active) { echo -a 7,1 $+ $timestamp >> $6 Matches Ban Mask ( $+ %banmaskmatch $+ ) On $2 | halt } 
        } 
      }

    }
  }  
}  

raw 315:*:{
  if ($hget(rawcontrols,$2) == active) {
    haltdef 
    //hdel rawcontrols $2     
    if ($hget(rawcontrols,$2 $+ local)) { //hdel rawcontrols $2 $+ local }
    if ($hget(rawcontrols,$2 $+ global)) { //hdel rawcontrols $2 $+ global }
    unset %banmaskmatch  
  }
unset %banmaskmatch
}

ON *:EXIT:{
  if ($hget(rawcontrols)) { hfree -w rawcontrols }
}

ON *:LOAD:{
  if (Status !isin $active) {
    echo -as 12,1 $+ $timestamp >> To Use Simply Type >>  /matchban ban/extendedban << In Channel You Want To Check
    echo -as 12,1 $+ $timestamp >>  To See Matchs From Another Channel Window Your On Type >>  /matchban #channel ban/extendedban <<  
    echo -as 13,1 $+ $timestamp >> Auto Ban Match Checker Loaded & Ready Coded By Desolator/^White_Magic^ (TOC 12:45 GMT 03/07/2005 V0.1)  
    halt    
  }  
  else {
    echo -s 12,1 $+ $timestamp >> To Use Simply Type >>  /matchban ban/extendedban << In Channel You Want To Check
    echo -s 12,1 $+ $timestamp >>  To See Matchs From Another Channel Window Your On Type >>  /matchban #channel ban/extendedban <<        
    echo -s 13,1 $+ $timestamp >> Auto Ban Matcher Checker Loaded & Ready Coded By Desolator/^White_Magic^ (TOC 12:45 GMT 03/07/2005 V0.1)
    halt   
  }
}

Comments

Sign in to comment.
Leah   -  Mar 02, 2006

I think it\'s a pretty handy addon if you\'re operating in big channels. :)

Good work Desolator :D

kicks LiquidJesus :P

 Respond  
Gex   -  Mar 02, 2006

nice work deso :)

 Respond  
Gex   -  Mar 02, 2006

LiquidJesus dont be so childish :) you know well desolator submission is 100 times better than urs (cs akick $chan add $banmask) + its childish to submit a low score for a useful snippet like this (MR.superprotected)

 Respond  
Desolator   -  Mar 02, 2006

btw liquid, do u see code errors in mine? did u see the code errors in urs? :)

 Respond  
LiquidJesus   -  Mar 01, 2006

rotf i wont be using this ever!!

 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.