Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 20th, 2010 | Syntax: None | Size: 2.18 KB | Hits: 63 | Expires: Never
Copy text to clipboard
  1. on *:ban:#:{
  2.   if (%protect. [ $+ [ $banmask ] ] == $null) { halt }
  3.   mode $chan +e $banmask
  4.   if ($nick != $me) {
  5.     mode $chan -b $banmask
  6.     kk $nick Don't ban me bitch
  7.  
  8.   }
  9.  
  10. }
  11.  
  12. on *:rawmode:#:{ if ($chan == #hotskitty) halt
  13.   if (-e isin $1-) {
  14.     if (%protect. [ $+ [ $2 ] ] != $null) {
  15.       mode $chan +e $2
  16.     }
  17.   }
  18. }
  19.  
  20. on *:join:#:{
  21.   if (%protect. [ $+ [ $address($nick,2) ] ]) {
  22.     mode $chan +e $address($nick,2)
  23.   }
  24. }
  25.  
  26. on *:kick:#:{
  27.   set %kchan $chan
  28.   if ($knick == $me) {
  29.     /cs unban $chan
  30.     /cs invite $chan
  31.     /j $chan
  32.     { inc %bcount } /timer 2 3 /kick $chan $nick 4,1«0«4«0« Trying to kick me, eh? 4Kick Number: %bcount 0»4»0»4»
  33.   }
  34. }
  35.  
  36. alias setprotect {
  37.   set %protect. [ $+ [ $address($$1,0) ] ] 0
  38.   set %protect. [ $+ [ $address($$1,1) ] ] 0
  39.   set %protect. [ $+ [ $address($$1,2) ] ] 0
  40.   set %protect. [ $+ [ $address($$1,3) ] ] 0
  41.   set %protect. [ $+ [ $address($$1,4) ] ] 0
  42.   set %protect. [ $+ [ $address($$1,5) ] ] 0
  43.   set %protect. [ $+ [ $address($$1,6) ] ] 0
  44.   set %protect. [ $+ [ $address($$1,7) ] ] 0
  45.   set %protect. [ $+ [ $address($$1,8) ] ] 0
  46. }
  47.  
  48. alias unprotect {
  49.   unset %protect. [ $+ [ $address($$1,0) ] ]
  50.   unset %protect. [ $+ [ $address($$1,1) ] ]
  51.   unset %protect. [ $+ [ $address($$1,2) ] ]
  52.   unset %protect. [ $+ [ $address($$1,3) ] ]
  53.   unset %protect. [ $+ [ $address($$1,4) ] ]
  54.   unset %protect. [ $+ [ $address($$1,5) ] ]
  55.   unset %protect. [ $+ [ $address($$1,6) ] ]
  56.   unset %protect. [ $+ [ $address($$1,7) ] ]
  57.   unset %protect. [ $+ [ $address($$1,8) ] ]
  58. }
  59.  
  60. menu nicklist {
  61.   Ban Protect
  62.   .Add $$1 $+ :setprotect $$1 | echo -a Protection set for $$1
  63.   .Del $$1 $+ :unprotect $$1 | echo -a $$1 unprotected
  64. }
  65. on 1:DEHELP:#: { if ($hnick == $me) ns update }
  66. on 1:DEOP:#: { if ($opnick == $me) ns update }
  67.  
  68. alias kk { inc %bcount | kick $chan $$1 4,1«0«4«0« $2- 4Kick Number: %bcount 0»4»0»4» }
  69. alias kb { inc %bcount | mode $chan +b $address($nick,2) } { kick $chan $$1 4,1«0«4«0« $2- 4Kick Number: %bcount 0»4»0»4» }
  70. alias k { inc %bcount | kick $chan $nick 4,1«0«4«0« Trying to kick me, eh? 4Kick Number: %bcount 0»4»0»4» }