home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / L2C / adenozin / SimpleScript.exe / Main / protect.ini < prev    next >
Encoding:
INI File  |  2000-05-25  |  2.3 KB  |  57 lines

  1. [script]
  2. n0=on 1:load:{
  3. n1=  unset %protection.asop
  4. n2=  set %protection.asop $$?="Enter channels you have Aop/Sop/Founder in"
  5. n3=  set %Protection.StatusON ╗
  6. n4=  set %protection.kickprot ON
  7. n5=  set %protection.banprot ON
  8. n6=  set %protection.deopprot ON
  9. n7=  set %protection.kickprotON ╗
  10. n8=  set %protection.banprotON ╗
  11. n9=  set %protection.deopprotON ╗
  12. n10=  .enable #Protection
  13. n11=  echo Protection Global Status:3 Enabled
  14. n12=  echo Protection ááKick Status:3 Enabled
  15. n13=  echo Protection áááBan Status:3 Enabled
  16. n14=  echo Protection ááDeop Status:3 Enabled
  17. n15=  if ((%protection.asop == $null) || ($chr(35) !isin %protection.asop)) { echo 4*** WARNING:10 You have not set channels for your protection or it is set incorrectly. Be sure to set it in the format2 #Channel1 #Channel2 #Channel310 in the Protection Popup Menu. }
  18. n16=  set %temp2 $chr(32) $+ $chr(35)
  19. n17=  set %protection.asop $remove(%protection.asop,$chr(32))
  20. n18=  set %protection.asop $replace(%protection.asop,$chr(35),%temp2)
  21. n19=  echo Protection Channels List:2 %protection.asop
  22. n20=}
  23. n21=#Protection on
  24. n22=on 1:ban:#:{
  25. n23=  if (%Protection.banprot == OFF) { halt }
  26. n24=  if (($bnick == $me) || ($banmask iswm $address($me,5))) {
  27. n25=    if ($me isop $chan) { .mode $chan -bo $banmask $nick }
  28. n26=    elseif ($chan isin %protection.asop) { .Chanserv unban $chan me }
  29. n27=    if ($level($address($nick,3)) < 10) {
  30. n28=      mode $chan -o+b $nick $address($nick,2)
  31. n29=      kick $chan $nick Personal Ban Protection
  32. n30=    }
  33. n31=    else {
  34. n32=      notice $nick Personal Ban Protection - Please do not set that ban again, otherwise I will kickban you.
  35. n33=    }
  36. n34=  }
  37. n35=}
  38. n36=on 1:kick:#:{
  39. n37=  if (%Protection.kickprot == OFF) { halt }
  40. n38=  if ($knick == $me) {
  41. n39=    if ($chan isin %protection.asop) {
  42. n40=      .ChanServ unban $chan me
  43. n41=      .ChanServ invite $chan $me
  44. n42=      .timer 3 1 { join $chan }
  45. n43=      set %protchan $chan
  46. n44=    }
  47. n45=  }
  48. n46=}
  49. n47=on 1:notice:*bans*against*:*:{ if ($nick == ChanServ) { .raw join %protchan | unset %protchan } }
  50. n48=on 1:deop:#:{
  51. n49=  if (%Protection.deopprot == OFF) { halt }
  52. n50=  if (($nick != $me) && ($opnick == $me)) {
  53. n51=    if ($chan isin %protection.asop) { .ChanServ op $chan $me }
  54. n52=  }
  55. n53=}
  56. n54=#Protection end
  57.