Advertisement
_MM_IKKE

chancontrol.ini

Nov 21st, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 5.37 KB | None | 0 0
  1. [script]
  2. n0=on 500,543:TEXT:*:#: { halt }
  3. n1=on *:TEXT:!chanset*:#: {
  4. n2=  if ($me == %bot1 && $1 == !chanset) {
  5. n3=    if ($nick == %owner) {
  6. n4=      if ($chan_log($2)) {
  7. n5=        if ($readini(channels\ $+ $2 $+ .ini,n,stats,$3) != $null) {
  8. n6=          if ($4 != $null) {
  9. n7=            msg $chan Successfully changed2 $3 1from4 $readini(channels\ $+ $2 $+ .ini,n,stats,$3) 1to4 $4 1(7 $+ $2 $+ 1)
  10. n8=            writeini channels\ $+ $2 $+ .ini Stats $3 $4
  11. n9=          }
  12. n10=          else {
  13. n11=            scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !chanset <channel> <mode> <setting>
  14. n12=          }
  15. n13=        }
  16. n14=        elseif ($readini(channels\ $+ $2 $+ .ini,n,settings,$3) != $null) {
  17. n15=          if ($4 != $null) {
  18. n16=            msg $chan Successfully changed2 $3 1from4 $readini(channels\ $+ $2 $+ .ini,n,settings,$3) 1to4 $4 1(7 $+ $2 $+ 1)
  19. n17=            writeini channels\ $+ $2 $+ .ini Settings $3 $4
  20. n18=          }
  21. n19=          else {
  22. n20=            scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !chanset <channel> <mode> <setting>
  23. n21=          }
  24. n22=        }
  25. n23=        elseif ($readini(channels\ $+ $2 $+ .ini,n,disabled,$3) != $null) {
  26. n24=          if ($4 != $null) {
  27. n25=            msg $chan Successfully changed2 $3 1from4 $readini(channels\ $+ $2 $+ .ini,n,disabled,$3) 1to4 $4 1(7 $+ $2 $+ 1)
  28. n26=            writeini channels\ $+ $2 $+ .ini Disabled $3 $4
  29. n27=          }
  30. n28=          else {
  31. n29=            scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !chanset <channel> <mode> <setting>
  32. n30=          }
  33. n31=        }
  34. n32=        elseif ($readini(channels\ $+ $2 $+ .ini,n,control,$3) != $null) {
  35. n33=          if ($4 != $null) {
  36. n34=            msg $chan Successfully changed2 $3 1from4 $readini(channels\ $+ $2 $+ .ini,n,control,$3) 1to4 $4 1(7 $+ $2 $+ 1)
  37. n35=            writeini channels\ $+ $2 $+ .ini Control $3 $4
  38. n36=          }
  39. n37=          else {
  40. n38=            scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !chanset <channel> <mode> <setting>
  41. n39=          }
  42. n40=        }
  43. n41=        elseif ($3) {
  44. n42=          scon $bot_say($chan) msg $chan 4ERROR:1 $3 is not a valid setting
  45. n43=        }
  46. n44=        else {
  47. n45=          scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !chanset <channel> <mode> <setting>
  48. n46=        }
  49. n47=      }
  50. n48=      elseif ($me ison $2) {
  51. n49=        scon $bot_say($chan) msg $chan 4ERROR:1 We aren't currently logging any data for this channel. Contact %owner to activate this feature.
  52. n50=      }
  53. n51=      elseif ($2) {
  54. n52=        scon $bot_say($chan) msg $chan 4ERROR:1 $2 is not a valid channel
  55. n53=      }
  56. n54=      else {
  57. n55=        scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !chanset <channel> <mode> <setting>
  58. n56=      }
  59. n57=    }
  60. n58=    else {
  61. n59=      scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorised to use this command
  62. n60=    }
  63. n61=  }
  64. n62=}
  65. n63=on *:TEXT:!enable*:#: {
  66. n64=  if ($me == %bot1 && $1 == !enable) {
  67. n65=    if ($chan_log($chan)) {
  68. n66=      if ($2) {
  69. n67=        if ($2 == quotes) {
  70. n68=          if ($nick == $chan_owner($chan) || $nick == %owner) {
  71. n69=            if (!$chan_quotes($chan)) {
  72. n70=              writeini channels\ $+ $chan $+ .ini Settings quotes 1
  73. n71=              scon $bot_say($chan) msg $chan Successfully 9enabled1 quotes on $chan
  74. n72=            }
  75. n73=            else {
  76. n74=              scon $bot_say($chan) msg $chan 4ERROR:1 Quotes are already enabled on this channel
  77. n75=            }
  78. n76=          }
  79. n77=          else {
  80. n78=            scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorised to use that command here
  81. n79=          }
  82. n80=        }
  83. n81=        else {
  84. n82=          scon $bot_say($chan) msg $chan 4ERROR:1 $2 isn't a known mode
  85. n83=        }
  86. n84=      }
  87. n85=      else {
  88. n86=        scon $bot_say($chan) msg $chan 4ERROR:1 !enable <mode>. Modes are: quotes
  89. n87=      }
  90. n88=    }
  91. n89=    else {
  92. n90=      scon $bot_say($chan) msg $chan 4ERROR:1 We aren't currently logging any data for this channel. Contact %owner to activate this feature.
  93. n91=    }
  94. n92=  }
  95. n93=}
  96. n94=on *:TEXT:!disable*:#: {
  97. n95=  if ($me == %bot1 && $1 == !disable) {
  98. n96=    if ($chan_log($chan)) {
  99. n97=      if ($2) {
  100. n98=        if ($2 == quotes) {
  101. n99=          if ($nick == $chan_owner($chan) || $nick == %owner) {
  102. n100=            if ($chan_quotes($chan)) {
  103. n101=              writeini channels\ $+ $chan $+ .ini Settings quotes 0
  104. n102=              scon $bot_say($chan) msg $chan Successfully 4disabled1 quotes on $chan
  105. n103=            }
  106. n104=            else {
  107. n105=              scon $bot_say($chan) msg $chan 4ERROR:1 Quotes are already disabled on this channel
  108. n106=            }
  109. n107=          }
  110. n108=          else {
  111. n109=            scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorised to use that command here
  112. n110=          }
  113. n111=        }
  114. n112=        else {
  115. n113=          scon $bot_say($chan) msg $chan 4ERROR:1 $2 isn't a known mode
  116. n114=        }
  117. n115=      }
  118. n116=      else {
  119. n117=        scon $bot_say($chan) msg $chan 4ERROR:1 !disable <mode>. Modes are: quotes
  120. n118=      }    
  121. n119=    }
  122. n120=    else {
  123. n121=      scon $bot_say($chan) msg $chan 4ERROR:1 We aren't currently logging any data for this channel. Contact %owner to activate this feature.
  124. n122=    }
  125. n123=  }
  126. n124=}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement