tglogo.png
0 LIKES

Snippet


Protect channel admins/ops/Bots by simo

In Category General IRC Posted by Snippets On 12/06/23
Tags: protect simo 

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.
on *:JOIN:#: {
  if ($nick(#,$me,@&~%)) {  
    if ($regex($nick,^((admin|root|owner|channel|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|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 0


Please note that on our website we use cookies necessary for the functioning of our website, cookies that optimize the performance. To learn more about our cookies, how we use them and their benefits, please read our Cookie Policy.
I Understand