Advertisement
SaNCaK

mIRC On-join Clone detector

Feb 1st, 2014
674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.81 KB | None | 0 0
  1. on *:join:#:{
  2. if (!$ial) { .ial on }
  3. if ($nick == $me) && (!$chan(#).ial) { who $chan }
  4. haltdef
  5. set %clone.chan $chan
  6. set %clone.nick $nick
  7. var %c, %x 1, %a = $+(*@,$gettok($address,2,64))
  8. while ($nick($chan,%x)) {
  9. if ((%a iswm $address($nick(#,%x),5)) && ($nick != $nick($chan,%x))) { %c = $iif(%c,%c $+ $chr(44)) $nick(#,%x) }
  10. inc %x
  11. }
  12. echo # $time.stamp 14:10:11: $nick 14[15 $+ $replace($address,@,14@15,.,14.15) $+ 14] 15has joined $chan $iif(%c, 14[15Clones Detected14:4 %c $chr(38) $nick) $+ 14]
  13. if ((%c) && ($me isop $chan)) {
  14. echo # $time.stamp Use F11 to kick clone.
  15. echo # $time.stamp Use F12 to kick ban clone.
  16. }
  17. }
  18. alias f11 { kick %clone.chan %clone.nick Clone Detected }
  19. alias f12 { mode %clone.chan +b $address(%clone.nick,2) | kick %clone.chan %clone.nick Clone Detected }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement