pony

modes

May 17th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. Mass modez
  2. .owner:{ .set %mode q | .set %sym + | .cmz | .set %mode v | .set %sym + | .cmz }
  3. .deowner:{ .set %mode q | .set %sym - | .cmz }
  4. .op:{ .set %mode o | .set %sym + | .cmz | .set %mode v | .set %sym + | .cmz }
  5. .deop:{ .set %mode o | .set %sym - | .cmz }
  6. .voice:{ .set %mode v | .set %sym + | .cmz }
  7. .devoice:{ .set %mode v | .set %sym - | .cmz }
  8. .kickz
  9. ..kick:{ echo -a 11 Disabled at this time | .draw dKICK d# d$snicks : $+ d$?="reason?" }
  10. ..ban:{ echo -a 11 Disabled at this time | .draw dKICK d# d$snicks : $+ d$?="why?" | dbup $snicks }
  11. Mass 1-10 users
  12. .ADD
  13. ..Deny:{
  14. var %c = 1, %t = $snick(#,0) | .who #
  15. while (%c <= %t) { var %n = $snick(#,%c) | access # add DENY $ial(%n).addr 0 : %n | inc %c }
  16. }
  17. ..DenyKick:{
  18. var %c = 1, %t = $snick(#,0) | .who #
  19. while (%c <= %t) { var %n = $snick(#,%c) | access # add DENY $ial(%n).addr 0 : %n | .raw kick $snick(#,%c) | inc %c }
  20. }
  21. ..Owner:{
  22. var %c = 1, %t = $snick(#,0) | .who #
  23. while (%c <= %t) { var %n = $snick(#,%c) | access # add owner $ial(%n).addr 0 : %n | inc %c }
  24. }
  25. ..Host:{
  26. var %c = 1, %t = $snick(#,0) | .who #
  27. while (%c <= %t) { var %n = $snick(#,%c) | access # add host $ial(%n).addr 0 : %n | inc %c }
  28. }
  29. ..Grant:{
  30. var %c = 1, %t = $snick(#,0) | .who #
  31. while (%c <= %t) { var %n = $snick(#,%c) | access # add Grant $ial(%n).addr 0 : %n | inc %c }
  32. }
  33. .Delete
  34. ..Deny:{
  35. var %c = 1, %t = $snick(#,0) | .who
  36. while (%c <= %t) { var %n = $snick(#,%c) | access # delete DENY $ial(%n).addr | inc %c }
  37. }
  38. ..Owner:{
  39. var %c = 1, %t = $snick(#,0) | .who #
  40. while (%c <= %t) { var %n = $snick(#,%c) | access # delete owner $ial(%n).addr | inc %c }
  41. }
  42. ..Host:{
  43. var %c = 1, %t = $snick(#,0) | .who #
  44. while (%c <= %t) { var %n = $snick(#,%c) | access # delete host $ial(%n).addr | inc %c }
  45. }
  46. ..Grant:{
  47. var %c = 1, %t = $snick(#,0) | .who #
  48. while (%c <= %t) { var %n = $snick(#,%c) | access # delete Grant $ial(%n).addr | inc %c }
  49. }
  50.  
  51.  
  52. cmz { .raw mode # %sym $+ $str(%mode,$numtok($snicks,44)) $replace($snicks,$chr(44),$chr(32)) }
  53.  
  54.  
  55.  
  56. On ^1:Mode:#: {
  57. if (+i isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Invite Only. | .haltdef }
  58. if (+k isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Set Room Key $2- $+ . | .haltdef }
  59. if (+l isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Set the Room Limit $2- $+ . | .haltdef }
  60. if (+m isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Spectator Mode. | .haltdef }
  61. if (+n isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Talking Through Others Names. | .haltdef }
  62. if (+p isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Private Room. | .haltdef }
  63. if (+s isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Secrect Room. | .haltdef }
  64. if (+t isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Hosts Only Can Change The Topic. | .haltdef }
  65. if (+u isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Knock Notifications | .haltdef }
  66. if (+v isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Guest Whisper | .haltdef }
  67. if (+w isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Whispers | .haltdef }
  68. if (-i isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Invite Only. | .haltdef }
  69. if (-k isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has UnSet Room Key $2- $+ . | .haltdef }
  70. if (-l isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has UnSet the Room Limit $2- $+ . | .haltdef }
  71. if (-m isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Spectator Mode. | .haltdef }
  72. if (-n isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Talking Through Others Names. | .haltdef }
  73. if (-p isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Private Room. | .haltdef }
  74. if (-s isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Secrect Room. | .haltdef }
  75. if (-t isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Hosts Only Can Change The Topic. | .haltdef }
  76. if (-u isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Disabled Knock Notifications | .haltdef }
  77. if (-v isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Guest Whisper | .haltdef }
  78. if (-w isin $1-) { //echo $chan 4 $+ $converter($nick) $+ has Enabled Whispers | .haltdef }
  79. }
  80.  
  81. on ^1:TOPIC:#: { //echo $chan 10 The chat's topic has changed to: 1 $+ $$1 $2- 14By $nick | .haltdef }
Advertisement
Add Comment
Please, Sign In to add comment