Skip to content
TG007 community snippet #147

Protect channel admins/ops/Bots by 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.

By Snippets Added Dec 6, 2023
General IRC All snippets
mIRC script 18 lines
About this snippet

Overview

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

mIRC script

18 lines · 1,289 characters
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
  }
}
Community

Comments

Want to join the discussion? Sign in to TG007.
No comments yet. Start the discussion.