Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. on *:INPUT:#: {
  2. if ($regex($mid($1,1,1),/^[+-]$/i)) mode # $1-
  3. if ($1 == .add) || ($1 == .del) || ($1 == .list) {
  4. haltdef
  5. cs access $chan $remove($1,.) $2-
  6. }
  7. if ($1 == .add) && ($$3 isnum) {
  8. haltdef
  9. $iif($3 > 2, mode $chan $iif($3 == 2,+v-oha) $iif($3 == 3,+v-oha) $iif($3 == 4,+h-voa) $iif($3 isnum 5-9,+o-hva) $iif($3 > 9,+ao-hv) $str($2 $+ $chr(32),5))
  10. }
  11. if ($1 == .del) && ($2 ison $chan) {
  12. haltdef
  13. mode # -aohv $2 $2 $2 $2
  14. }
  15. if ($left($1,1) == + || $left($1,1) == -) {
  16. haltdef
  17. mode $chan $eval($1-,2) $iif($2,$2-,$me)
  18. }
  19. if ($1 == .tb) {
  20. mode # -Q
  21. ban -ku $+ $3 # $2 You have been banned from # for $3 seconds ( $+ $calc($3 /60) minutes) with the reason: $iif($4,$4-,No Reason.) }
  22. if ($1 == .akview) { cs akick $chan view | halt }
  23. if ($1 == .akick) { cs akick $chan add $2 $3- | halt }
  24. if ($1 == .delakick) { cs akick $chan del $2 | halt }
  25. if ($1 == .safe) { mode $me +RTp }
  26. if ($1 == .ei) { mode $chan +eI $address($2,2) $address($2,2) | halt }
  27. if ($1 == .mute) { mode $chan +mbb-aohvq $2 $+(~q:,$address($2,2)) $2 $2 $2 $2 $2 | halt }
  28. if ($1 == .w) { whois $2 | halt }
  29. if ($1 == .qk) { mode $chan -Q | cs kick $chan $2 | kick $chan $2 | halt }
  30. if ($1 == .qkb) { mode $chan -Q | cs ban $chan $2 | mode $chan +b $address($2,2) | kick $chan $2 | halt }
  31. if ($1 == .inv) { invite $2 $chan | halt }
  32. if ($1 == .invv) { mode $chan -V | invite $2 $chan | timer 1 1 mode $chan +V | halt }
  33. if ($1 == .topiclockon) { cs set $chan topiclock on }
  34. if ($1 == .topiclockoff) { cs set $chan topiclock off }
  35. if ($1 == .cinv) { invite $2 $3 | halt }
  36. if ($1 == .info) {
  37. if ($2 == $null) { ns info $me all | halt }
  38. }
  39. if ($1 == .cinfo) { cs info $chan all | halt }
  40. if ($1 == .n) { ns update | halt }
  41. if ($1 == .ns) { ns info $iif($2,$2,$nick) all }
  42. if ($1 == .alist) { ns alist | halt }
  43. if ($1 == .glist) { ns glist | halt }
  44. if ($1 == .b) { cs ban $chan $2 $3- | halt }
  45. if ($1 == .k) { cs kick $chan $2 $3- | halt }
  46. if ($1 == .kb) { kick $chan $2 | ban $chan $2 2 }
  47. if ($1 == .mlock) { cs set $chan mlock $2- | halt }
  48. if ($1 == .kb) { mode $chan -oQ+bbb $address($2,2) $address($2,3) $2 | cs kick $chan $2 }
  49. if ($1 == .clearb) { cs clear $chan bans | halt }
  50. if ($1 == .cleare) { cs clear $chan excepts | halt }
  51. if ($1 == .cleari) { cs clear $chan invites | halt }
  52. if ($1 == .i) {
  53. mode $chan -V
  54. invite $2 $chan
  55. halt
  56. }
  57. if ($1 == .Qkb) {
  58. mode # +bbb-vhoQ $2 $address($2,2) $address($2,1) $2 $2 $2
  59. mode # -Q
  60. kick # $2 $3-
  61. mode # -Q
  62. kick # $2 $3-
  63. }
  64. if ($1 == .Qk) {
  65. mode # -oQ $2
  66. mode # -Q
  67. kick # $2 $3-
  68. }
  69. if ($1 == .levels) {
  70. cs levels # set $$2-3
  71. }
  72. if ($1 == .ucount) {
  73. say The user count for $iif($2,$2,#) is $nick($iif($2,$2,#),0) }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement