Advertisement
Guest User

Untitled

a guest
May 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. alias np { /dde mplug announce }
  2. alias kb {
  3. if ($2) { set %kreason $2- )
  4. if (!$2) { set %kreason fuck off }
  5. kick $chan $1 %kreason ( $+ %ks $+ }
  6. inc %ks
  7. }
  8. alias k {
  9. if ($2) { set %kreason $2- )
  10. if (!$2) { set %kreason fuck off }
  11. kick $chan $1 ( $+ %ks $+ )
  12. inc %ks
  13. }
  14. alias m {
  15. mode $active +b ~q: $+ $address($1,2)
  16. if ($2 == -t) {
  17. timer 1 $3 /mode $active -b ~q: $+ $address($1,2)
  18. .notice $1 I just muted you for $3 minutes for reason: $iif(!$4, No reason, $4-)
  19. }
  20. else { .notice $1 I just muted you for reason: $iif(!$2, No reason, $2-) }
  21. }
  22.  
  23.  
  24. on 1:INPUT:#: {
  25. if ($pos($1,+,1) == 1) || ($pos($1,-,1) == 1) && ($pos($1,b,1) != 2) && ($pos($1,m,1) != 2) && ($pos($1,t,1) != 2) {
  26. if ($2) {
  27. /mode $chan $1 $2- $2 $2 $2 $2
  28. }
  29. if (!$2) {
  30. /mode $chan $1 $me $me $me $me
  31. }
  32. halt
  33. }
  34. if (($pos($1,+,1) == 1) && ($pos($1,b,1) == 2)) {
  35. if ($2 ison $chan) {
  36. /mode $chan +b $address($2,2)
  37. }
  38. else {
  39. /mode $chan +b $2
  40. }
  41. if ($pos($1,k,1) == 3) {
  42. set %ban. $+ $2 $address($2,2)
  43. /kick $chan $2-
  44. }
  45. halt
  46. }
  47. if (($pos($1,-,1) == 1) && ($pos($1,b,1) == 2)) {
  48. if (%,ban.,$2) {
  49. /mode $chan -b $eval($+(%,ban.,$2),2)
  50. .notice $2 You have been unbaned from $chan
  51. }
  52. if (!%,ban.,$2) {
  53. if ($2 ison $chan) {
  54. /mode $chan -b $address($2,2)
  55. }
  56. else {
  57. mode $chan -b $2
  58. }
  59. }
  60. halt
  61. }
  62. if (($pos($1,+,1) == 1) && ($pos($1,m,1) == 2)) {
  63. if ($2) {
  64. if ($2 ison $chan) {
  65. /mode $chan +b ~q: $+ $address($2,2)
  66. /mode $chan -hov $2 $2 $2 $2
  67. set %muted. $+ $2 $eval($address($2,2))
  68. }
  69. else {
  70. /mode $chan +b ~q: $+ $2
  71. }
  72. }
  73. if (!$2) {
  74. /mode $chan +m
  75. }
  76. halt
  77. }
  78. if (($pos($1,-,1) == 1) && ($pos($1,m,1) == 2)) {
  79. if ($2) {
  80. if ((%,muted.,$2)) {
  81. /mode $chan -b ~q: $+ $eval($+(%,muted.,$2),2)
  82. .notice $2 You have been unmuted on $chan
  83. unset %muted. $+ $2
  84. }
  85. if (!(%,muted.,$2)) {
  86. if ($address($2,2)) {
  87. /mode $chan -b ~q: $+ $address($2,2)
  88. }
  89. if (!$address($2,2)) {
  90. /mode $chan -b ~q: $+ $2
  91. }
  92. }
  93. }
  94. if (!$2) {
  95. /mode $chan -m
  96. }
  97. halt
  98. }
  99. if (($pos($1,+,1) == 1) && ($pos($1,t,1) == 2)) {
  100. if (($pos($1,k,1) == 3) && ($pos($1,b,1) == 4)) {
  101. if ($3 ison $chan) {
  102. var %tkbtime = $calc(($2)*60)
  103. /mode $chan +b $address($3,2)
  104. .timer 1 %tkbtime mode $chan -b $address($3,2)
  105. set %ban. $+ $2 $address($3,2)
  106. if (!$4) {
  107. /kick $chan $3 Time out. $2 minute(s) ( $+ %tkbtime seconds)
  108. }
  109. if ($4) {
  110. /kick $chan $3 Time out. Reason: $4- ( $+ $2 minute(s) ( $+ %tkbtime seconds))
  111. }
  112. }
  113. }
  114. else {
  115. mode $chan +t
  116. }
  117. halt
  118. }
  119. }
  120. alias calc {
  121. var %calc = $replace($1,d,*60*60*24,m,*60,h,*60*60)
  122. if (!$1) { echo -a 14[ $+ $asctime(HH:nn) $+ ]7 Insufficient parameters.  }
  123. if ($1) { echo -a 14[ $+ $asctime(HH:nn) $+ ]7 $calc((%calc))  }
  124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement