Protect channel admins/ops/Bots

By simo on Aug 03, 2017

protecting from impersonating channel admins/ops/bots:

for example if your channel Bot or OP/Admin 's nick is admin it will kickban those that try to impersonate with nicks like admin_5454 jh98123_admin and other paterns.

Made with the help of Ouims

on *:JOIN:#: {
  if ($nick(#,$me,@&~%)) {  
    if ($regex($nick,^((admin|root|owner|channel|chan|chan|nick|host|oper|bot|memo|info|scan|bad)serv|admin|root|chanadmin).)) { mode $chan +bb $regml(1) $+ ?*!*@* $wildsite | kick $chan $nick please dont impersonate Services Bots or Channel Admins/Ops }
    if ($regex($nick,(.(admin|root|owner|channel|chan|chan|nick|host|oper|bot|memo|info|scan|bad)serv|admin|root|chanadmin))$) { mode $chan +bb *? $+ $regml(1) $+ !*@* $wildsite | kick $chan $nick please dont impersonate Services Bots or Channel Admins/Ops }
  }
} 

ON  *!:nick: {
  var %cxrtw = 1
  while ($comchan($newnick,%cxrtw) != $null )  {
    var %chanNCxr872 $v1
    if ($nick(%chanNCxr872,$me,@%&~)) {
      if ($regex($newnick,^((admin|root|owner|channel|chan|chan|nick|host|oper|bot|memo|info|scan|bad)serv|admin|root).)) { mode %chanNCxr872 +bb $regml(1) $+ ?*!*@* $wildsite | kick %chanNCxr872 $newnick please dont impersonate Services Bots or Channel Admins/Ops }
      if ($regex($newnick,(.(admin|root|owner|channel|chan|chan|nick|host|oper|bot|memo|info|scan)serv|admin|root|chanadmin))$) { mode %chanNCxr872 +bb *? $+ $regml(1) $+ !*@* $wildsite | kick %chanNCxr872 $newnick please dont impersonate Services Bots or Channel Admins/Ops }
    }
    inc %cxrtw
  }
}

Comments

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.