Advertisement
Guest User

x

a guest
May 28th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.73 KB | None | 0 0
  1. alias masshl {
  2. if ($left($1,1) == -) { var %massu $iif(a isin $1 || o isin $1 || h isin $1 || v isin $1 || r isin $1,$remove($1,-),a) | tokenize 32 $2- }
  3. else { var %massu a }
  4. var %x 1 | var %msg $iif($1,=> $+ $1-) | tokenize 32
  5. while (%x <= $nick(#,0,%massu)) { if ($nick(#,%x,%massu) != $me) { tokenize 32 $1- $nick(#,%x,%massu) }
  6. inc %x
  7. }
  8. tokenize 32 $1- %msg
  9. while ($$1-) { say $1-30 | tokenize 32 $31- }
  10. }
  11. menu nicklist {
  12. .Mass HL {
  13. var %msg $?="Message?" | var %msg $iif(%msg,=> $+ %msg) | tokenize 32 $replace($snicks,$chr(44),$chr(32))
  14. tokenize 32 $1- %msg
  15. while ($$1-) { say $1-30 | tokenize 32 $31- }
  16. }
  17. }
  18. on *:text:*ron*:#:{
  19. msg $chan 13 (: }
  20. raw 0:*:{
  21. if (!$2) {
  22. if ($dialog(silence)) {
  23. if (+*!*@* iswm $1) {
  24. did -a silence 1 $mid($1,2)
  25. did -e silence 1,2,3,4
  26. }
  27. elseif (-*!*@* iswm $1) {
  28. while ($didwm(silence,1,$mid($1,2),1)) { did -d silence 1 $v1 }
  29. did -e silence 1,2,3,4
  30. }
  31. haltdef
  32. }
  33. }
  34. }
  35. raw 001:*:{
  36. set %rconnected. $+ $cid 1
  37. .signal -n connect
  38. }
  39. raw 005:*:{
  40. if ($gettok($wildtok($1-,TOPICLEN=?*,1,32),2,61)) { set %topiclen. $+ $cid $v1 }
  41. if ($gettok($wildtok($1-,SILENCE=?*,1,32),2,61)) { set %silencenum. $+ $cid $v1 }
  42. if ($gettok($wildtok($1-,MAXBANS=?*,1,32),2,61)) { set %maxbans. $+ $cid $v1 }
  43. }
  44. raw 004:*:{ set %usermodes. $+ $cid $4 }
  45. raw 271:*:{
  46. if ($dialog(silence)) {
  47. while ($didwm(silence,1,$3,1)) { did -d silence 1 $v1 }
  48. did -a silence 1 $3
  49. haltdef
  50. }
  51. }
  52. raw 272:*:{
  53. if ($dialog(silence)) {
  54. did -e silence 1,2,3,4
  55. haltdef
  56. }
  57. }
  58. raw 315:*:{
  59. if (!%who.show. [ $+ [ $cid ] ]) {
  60. haltdef
  61. if (%showialupd) && ($2 ischan) { thmecho -s Addresses from $thmhl($2) saved. Now $thmhl($ial(*,0)) entries. }
  62. if (%ialupdate. [ $+ [ $cid ] ]) {
  63. var %c = $wd($v1,1)
  64. $+(.timerialq.,$cid,.,%c) 1 $rand(5,10) ialq.start %c
  65. }
  66. }
  67. else { unset $+(%,who.show.,$cid) }
  68. if ($dialog(clonescan)) && ($did(clonescan,7).seltext == $2) { cscan.do }
  69. }
  70. raw 324:*:{
  71. if ($chan($2).key) && ($curconserv) { set $+(%,pass.chan.,$v1,.,$2) $encode($chan($2).key,m) }
  72. if (!%modedsp. [ $+ [ $cid ] $+ ] . [ $+ [ $2 ] ]) { haltdef }
  73. }
  74. raw 329:*:{
  75. if (!%modedsp. [ $+ [ $cid ] $+ ] . [ $+ [ $2 ] ]) { haltdef }
  76. else { unset $+(%,modedsp.,$cid,.,$2) }
  77. }
  78. raw 330:*:{
  79. if ($q.net) && ($2 == $me) {
  80. set %q.authed. $+ $cid 1
  81. if (!%q.auth.nick) {
  82. set %q.auth.nick $3
  83. if ($dialog(settings)) { did -ra $v1 17 %q.auth.nick }
  84. }
  85. }
  86. }
  87. raw 333:*:{ topic.shist $2 $4 $chan($2).topic }
  88. raw 352:*:{ if (!%who.show. [ $+ [ $cid ] ]) { haltdef } }
  89. raw 366:*:{
  90. if ($nick($2,0)) && ((!$hget(peaks,$2)) || ($wd($hget(peaks,$2),1) < $nick($2,0))) { hadd -m peaks $2 $nick($2,0) $ctime }
  91. if (%cs.autoident) && (ChanServ ison $2) { cs.chanauth $chan }
  92. if (%ialupdate) {
  93. if ($nick($2,0) < %maxwhousers) {
  94. if (!%ialupdate. [ $+ [ $cid ] ]) { $+(.timerialq.,$cid,.,$2) 1 $rand(5,10) ialq.start $2 }
  95. ialq.update add $2
  96. }
  97.  
  98. on *:text:ron:#:msg # Has a monster coc
  99. elseif ($nick($2,0) != $null) && (%showialupd) { thmerror -s Addresses from $thmhl($2) not saved. (too many users) }
  100. }
  101. if ($nick($2,0) == 1) { .timer 1 3 if ($ccontrol($2)) $chr(123) mode $2 $iif($q.net,+CnNt,+nt) $chr(125) }
  102. }
  103. raw 371:*:{
  104. haltdef
  105. var %w = $specialcidwin(Info)
  106. if ($window(%w)) { echo -mti6 %w    $2- }
  107. else {
  108. window -nk0g1v %w
  109. thmecho %w Server info on $thmhl($server)
  110. echo %w 
  111. echo -mti6 %w    $2-
  112. }
  113. }
  114. raw 372:*:{
  115. haltdef
  116. if ($window($specialcidwin(MOTD))) { echo -mti6 $v1    $2- }
  117. }
  118. raw 374:*:{
  119. haltdef
  120. var %w = $specialcidwin(Info)
  121. if ($window(%w)) {
  122. echo %w 
  123. thmecho %w End of $thmhl($server) info
  124. }
  125. }
  126. raw 375:*:{
  127. haltdef
  128. var %w = $specialcidwin(MOTD)
  129. if ($gettok($readini($mircini,options,n1),11,44)) && (!%motd.manual. [ $+ [ $cid ] ]) { return }
  130. if ($window($specialcidwin(MOTD))) { window -c %w }
  131. window -nk0g1v %w
  132. thmecho %w Message of the day on $thmhl($server)
  133. echo %w 
  134. }
  135. raw 376:*:{
  136. haltdef
  137. var %w = $specialcidwin(MOTD)
  138. if ($window(%w)) {
  139. echo %w 
  140. thmecho %w End of $thmhl($server) message of the day
  141. unset %motd.manual. $+ $cid
  142. }
  143. }
  144. raw 405:*:{ if ($timer(joinretry. $+ $cid)) && (%joinretry. [ $+ [ $cid ] ] == $2) { return } }
  145. raw 433:*:{
  146. var %n = $2
  147. if (%ghosttry. [ $+ [ $cid ] ]) {
  148. thmecho $asecho Ghosting unsuccessful, sorry! Try ghosting manually!
  149. unset %ghosttry. $+ $cid
  150. haltdef
  151. }
  152. if (%rconnected. [ $+ [ $cid ] ]) {
  153. if (%nsset. [ $+ [ $network ] ]) {
  154. tokenize 32 $v1
  155. if ($4) && (%n == $5) {
  156. set -u60 %ghosttry. $+ $cid 1
  157. $iif(!$1,.msg) nickserv ghost %n $decode($4,m)
  158. thmecho $asecho Auto-ghosting $thmhl(%n) $+ ...
  159. .timernsghost. $+ $cid 1 2 nick %n
  160. haltdef
  161. }
  162. }
  163. elseif ($gsurge) && (%gs.autoghost) {
  164. set -u60 %ghosttry. $+ $cid 1
  165. .msg authserv ghost %n
  166. thmecho $asecho Auto-ghosting $thmhl(%n) $+ ...
  167. .timergsghost. $+ $cid 1 2 nick %n
  168. haltdef
  169. }
  170. }
  171. if (!$timer(nickchg. $+ $cid)) {
  172. set %nickretry. $+ $cid %n
  173. .timer 1 0 thmecho $asecho Press Control+F1 to retry taking the nick $thmhl(%n) $+ !
  174. }
  175. else { haltdef }
  176. }
  177. raw 471:*:{ j.retry $2 }
  178. raw 473:*:{ j.retry $2 }
  179. raw 474:*:{ j.retry $2 }
  180. raw 475:*:{
  181. haltdef
  182. set %chankey.prompt.chan $2
  183. .timerjoinretry. $+ $cid off
  184. .timerchankey -io 1 0 chankey.prompt
  185. }
  186. raw 511:*:{
  187. thmerror -a Your silence list is full! $thmhl($2)
  188. haltdef
  189. }
  190. ; ––––––––––––––––––––––––––––––––––––––––
  191. ; End of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement