Banmask Correction

By simo on Apr 15, 2017

this removes regular banmask set on irccloud users and replaces with ident ban since many irccloud users have clone hosts ( some actually have uid in host as well but since some dont i decided to make this small code that bans ident instead since all irccloud users have UID in ident )

by DesertFish.

ON *:BAN:#:{
  if ($nick(#,$me,@%&~)) {
    if ($regex($banmask,/(.*mibbit.com|.*irccloud.com|.*kiwiirc.com|192.184.9.108|192.184.9.110|192.184.9.112|192.184.8.73|192.184.10.9|192.184.10.118|107.161.19.109|207.192.75.252|64.62.228.82|78.129.202.38|87.98.219.117|107.161.19.53|109.169.31.4|109.169.29.95|195.154.53.5|195.154.52.250|212.83.148.225)/i)) { mode $chan -b $banmask  }
    if ($istok(*!*@* *!*@.* *!uid*@* *!*uid*@* *!*sid*@* *!sid*@* *!~uid*@* *!*~uid*@* *!~sid*@*,$banmask,32)) { mode $chan -b $banmask } 
  }
}

ON ^*:KICK:#:{ 
  if ($nick(#,$me,@%&~)) { 
        if ($regex($gettok($address($knick,2),2,64),/(.*mibbit.com|.*irccloud.com|.*kiwiirc.com|192.184.9.108|192.184.9.110|192.184.9.112|192.184.8.73|192.184.10.9|192.184.10.118|107.161.19.109|207.192.75.252|64.62.228.82|78.129.202.38|87.98.219.117|107.161.19.53|109.169.31.4|109.169.29.95|195.154.53.5|195.154.52.250|212.83.148.225)/i)) {  
      mode $chan +b $+($gettok($address($knick,0),1,64),@*)
    }
  } 
}

Comments

Sign in to comment.
Jarrah   -  May 19, 2020

Why you don't replace the banmask with his Identd or whatever (e.g: +b-b identd banmask) would be very useful

simo  -  Nov 03, 2021

because you cant determine whows ident to use the kick event determines that

Sign in to comment

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.