pony

This here is it

Aug 28th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. on prot:DEOWNER:#:{
  2. if ($nick != $me) && ($nick != $opnick) {
  3. set -u30 %skick. [ $+ [ $nick ] ] $calc( %skick. [ $+ [ $nick ] ] + 1)
  4. if (%skick. [ $+ [ $nick ] ] == 1) {
  5. mode $chan +q $opnick | msg $chan Please $nick Do Not Deop $opnick !
  6. }
  7. if (%skick. [ $+ [ $nick ] ] == 2) {
  8. /mode $chan +q $opnick
  9. msg $chan SECOND WARNING $nick , Again Please $nick DO NOT Deop $opnick AGAIN :|
  10. }
  11. if (%skick. [ $+ [ $nick ] ] == 3) {
  12. /mode $chan +q $opnick | /mode $chan -q $nick
  13. msg $chan LAST WARNING $nick , DO NOT Deop $opnick AGAIN :|
  14. }
  15.  
  16. if (%skick. [ $+ [ $nick ] ] >= 4) {
  17. kick $chan $nick I ASKED YOU NOT TO 3 TIMES , DON'T EVER Deop $opnick EVER AGAIN!
  18.  
  19. >>>>>>>>>I need that code below to work here <<<<<<<<<<
  20.  
  21. mode $chan +q $opnick
  22. access $chan add deny $nick
  23. access $chan add deny $address($nick,3)
  24. }
  25. }
  26. }
  27.  
  28.  
  29.  
  30. menu nicklist {
  31. Buzzen remove: { RemoveFromAccess # $$1
  32. /mode # -q $$1
  33. /mode # -o $$1
  34. }
  35. }
  36. alias RemoveFromAccess {
  37. set -u20 %AR.chan $1
  38. set -u20 %AR.nick $ial($$2,1)
  39. raw ACCESS $1 LIST
  40. }
  41.  
  42. RAW 804:*: {
  43. if ($2 == %AR.chan) {
  44. var %e $+(*, $remove($gettok($4,$iif(! isin $4,2,1),33),*), *)
  45. if (%e iswm %AR.nick) { raw ACCESS $2 DELETE $3 $4 | echo $2 Removed Entry: $3 $4 }
  46. }
  47. }
  48.  
  49. RAW 805:*: {
  50. if ($2 == %AR.chan) {
  51. unset %AR.chan
  52. unset %AR.nick
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment