Advertisement
Joeytje50

near flawless kick/ban/deop prevention.

May 19th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.68 KB | None | 0 0
  1. on me:*:PART:#: {
  2.   if ($regex($1-,/requested by /i)) {
  3.     /timer 1 0 join $chan
  4.   }
  5. }
  6. RAW 474:*: {
  7.   cs unban $remove($2,)
  8. }
  9. RAW 482:#rswiki,##cakemix,#svipul: {
  10.   cs op $chan
  11. }
  12. on *:NOTICE:*:*: {
  13.   if ($nick == ChanServ) {
  14.     if ($regex($1-2,$+($+(/^Unbanned .?,$me),.?$/))) {
  15.       join $remove($4,)
  16.     }
  17.   }
  18. }
  19. on *:BAN:#rswiki,##cakemix,#svipul: {
  20.   if (($regsubex($banmask,/\$?#.*/,) iswm $address($me,5)) || ($banmask == $+($+($,a:),$mnick))) {
  21.     if ($me isop $chan) {
  22.       mode $chan -b $banmask
  23.     }
  24.     else {
  25.       cs op $chan
  26.       cs unban $chan
  27.     }
  28.   }
  29. }
  30. on *:DEOP:#rswiki,##cakemix,#svipul: {
  31.   if ($me !isop $chan) {
  32.     cs op $chan
  33.   }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement