home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / hacking / internet / toolbox.irc < prev    next >
Encoding:
Text File  |  2001-02-10  |  50.4 KB  |  2,433 lines

  1. #  ToolZ V1.433b from EnCiNo (c) '94 hope it makes ya feel warm.
  2. # '/on -ctcp "% % Ver%" /notice $0 Running : $running'
  3. # Or summit simular :]
  4. #
  5. ^echo |                      WELCOME TO EnCiNo's toolbox                               |
  6. ^echo | ! Auto Ban Kick now fixed.                                                 |
  7. ^echo | > Automatic away message can now be changed (/idlemes)                     |
  8. ^echo | > Default away message has been added. So you just type /Setaway for it to |
  9. ^echo |     work. (/defmes)                                                        |
  10. ^echo | ! Logging fixed.                                                           |
  11. ^echo |          If you have any questions email me :kushni21@edison.poly.edu  
  12.       |   
  13.       |
  14. ^echo |  File size : 53101 if your ToolZ.irc is not this size, then DONT USE IT!   |
  15. ^echo |      EnCiNo's Toolie box now loaded. for list of commands : /Commands   
  16.       |
  17. ^echo `------------------------------------------------------------------------<E>-'
  18. ^assign tlzsize 53101
  19. ^assign version V1.433b
  20. ^assign adop autostuf.yaz
  21. ^assign backadop autoback.yaz
  22. ^assign awayfle awaymes.yaz
  23. ^assign mdautos On
  24. ^assign adautod On
  25. ^assign Adadcc On
  26. ^assign adbnusd Notused
  27. ^assign lckdmod None
  28. ^assign mdzmdp On
  29. ^assign isaway Nope
  30. ^assign AInv On
  31. ^assign Overwrite Off
  32. ^assign -Killpw
  33. ^assign -mdautop
  34. ^assign -mdautpw
  35. ^assign -mdautlk
  36. ^assign -mdautbk
  37. ^assign -mdautjn
  38. ^assign -mdautof
  39. ^assign alarm Off
  40. ^assign alarmt 00:00
  41. ^assign megames !NONE!
  42. ^assign idleaway 5
  43. ^assign autoaway On
  44. ^assign toolz ToolZ
  45. ^assign dstog Off
  46. ^assign defumes Detached.
  47. ^assign idlemes Automatically set away.
  48. @ ajnflag = 0
  49. /eval ^assign running ToolZ $version ${running}
  50. ^set exec_protection off
  51. ^set status_user  ToolZ V1.433b
  52. ^set novice off
  53. ^set max_recursions 100
  54. ^set client_information Running ToolZ V1.433b
  55. ^set hold_mode off
  56. ^set beep on
  57. ^set hold_mode off
  58. ^bind ^b Self_insert
  59. ^bind ^v Self_insert
  60. ^bind ^w next_window
  61. alias n
  62. {
  63.   ^notify $left($index(! $0) $0)
  64.   if ([$1])
  65.   {
  66.     /notif $1-
  67.   }
  68. }
  69. alias dovar
  70. {
  71.   ^assign $0 $1-
  72. }
  73. alias adaddem
  74. {
  75.   ^assign mdautop $0- ${mdautop}
  76. }
  77. alias adaddlk
  78. {
  79.   ^assign mdautlk $0- ${mdautlk}
  80. }
  81. alias adaddak
  82. {
  83.   ^assign mdautbk $0- ${mdautbk}
  84. }
  85. alias adaddjn
  86. {
  87.   ^assign mdautjn $0- ${mdautjn}
  88. }
  89. alias adaddof
  90. {
  91.   ^assign mdautof $0- ${mdautof}
  92. }
  93. alias ADadd
  94. {
  95.   if ([$0])
  96.   {
  97.     ^echo [$toolz] Adding $0 to your excellent list.
  98.     userhost $0 -CMD if ([$3]!=[<UNKNOWN>])
  99.     {
  100.       if (rmatch($0!$3@$4 $mdautop))
  101.       {
  102.         ^echo [$toolz] $0 is already on your list.
  103.       }
  104.       {
  105.         ^notice $0 You have been added to $N 's auto op list.
  106.         ^notice $0 Do a /ctcp $N Help for more info.
  107.         adaddem $0!$3@$4
  108.       }
  109.     }
  110.     {
  111.       ^echo [$toolz] I cannot find $0 on IRC.
  112.     }
  113.   }
  114.   {
  115.     ^echo [$toolz] You must specify the nick of the person you are adding.
  116.   }
  117. }
  118. alias ADstat
  119. {
  120.   if ([$0]==[on])
  121.   {
  122.     ^assign mdautos On
  123.     ^echo [$toolz] Ctcp op/invite now on.
  124.   }
  125.   {
  126.     if ([$0]==[off])
  127.     {
  128.       ^assign mdautos Off
  129.       ^echo [$toolz] Ctcp op/invite now off.
  130.     }
  131.     {
  132.       ^echo [$toolz] Ctcp op/invite is $mdautos
  133.     }
  134.   }
  135. }
  136. ^on -ctcp *
  137. {
  138.   if (([$1]==[$N])&&([$2]!=[VERSION]))
  139.   {
  140.     if ([$adbnusd]==[Notused])
  141.     {
  142.       ^assign adbnusd Inuse
  143.       if ([$3])
  144.       {
  145.         ^assign adchannl $3
  146.       }
  147.       {
  148.         ^assign adchannl $C
  149.       }
  150.       if (rmatch($0!$userhost() $mdautop))
  151.       {
  152.         adcomm $0-
  153.       }
  154.       ^assign adbnusd Notused
  155.     }
  156.     {
  157.       ^notice $0 Sorry script in use at the moment, please try again in a few seconds.
  158.       ^echo [$toolz] $0 tryed CTCP $2- but script was busy.
  159.     }
  160.   }
  161. }
  162. ^on -ctcp "% % DCC SEND *"
  163. {
  164.   if ([$1]==[$N])
  165.   {
  166.     if ([$adautod]==[On])
  167.     {
  168.       /exec -name DCG$0/$4 ls $4
  169.     }
  170.     {
  171.       ^echo [$toolz] DCC Send received ! $0 has offered $4
  172.     }
  173.   }
  174. }
  175. ^on -ctcp "% % DCC CHAT *"
  176. {
  177.   if ([$1]==[$N])
  178.   {
  179.     /dcc chat $0
  180.     ^echo [$toolz] Dcc Chat received. Use '/M =$0 <Message>' To chat via dcc.
  181.   }
  182. }
  183. ^on ^exec_error "DCG* *"
  184. {
  185.   @ dcclen = [$0]
  186.   @ getf = [$right(${@dcclen-3} $0)]
  187.   @ idx = [$index(/ $getf)]
  188.   @ filenme = [$right(${@getf-idx+1} $0)]
  189.   @ nicknme = [$left($idx $getf)]
  190.   ^dcc get $nicknme $filenme
  191.   ^echo [$toolz] Auto-Getting $filenme from $nicknme .
  192. }
  193. ^on ^exec "DCG* *"
  194. {
  195.   @ dcclen = [$0]
  196.   @ getf = [$right(${@dcclen-3} $0)]
  197.   @ idx = [$index(/ $getf)]
  198.   @ filenme = [$right(${@getf-idx+1} $0)]
  199.   @ nicknme = [$left($idx $getf)]
  200.   if ([$overwrite]==[On])
  201.   {
  202.     ^echo [$toolz] Auto-Getting $filenme from $nicknme . (Overwriting file)
  203.     /dcc get $nicknme $filenme
  204.   }
  205.   {
  206.     ^echo [$toolz] $nicknme offered $filenme but it already exists.
  207.   }
  208. }
  209. ^on -ctcp "% % FINGER"
  210. {
  211.   ^echo [$toolz] $0 has fingered you.
  212.   /notice $0 Why don't you just ask me?
  213. }
  214. ^on -ctcp "% % RUNNING"
  215. {
  216.   /notice $0 Running : $running
  217.   ^echo [$toolz] $0 has asked for your 'running' list.
  218. }
  219. ^on -ctcp "% % VER%"
  220. {
  221.   ^echo [$toolz] $0 has asked for my version.
  222.   ^notice $0 Running : $running
  223. }
  224. ^on -ctcp "% % PING "
  225. {
  226.   ^echo [$toolz] $0 has pinged you.
  227.   ^notice $0 PONG !!
  228. }
  229. ^on -ctcp "% % Toolz"
  230. {
  231.   /notice $0 I am running ToolZ $version
  232. }
  233. ^on -join *
  234. {
  235.   ^assign jnconf $1
  236.   Userhost $0 -CMD if ([$3])
  237.   {
  238.     if (match($0!$3@$4 $mdautop))
  239.     {
  240.       if ([$mdautos]==[On])
  241.       {
  242.         /mode $jnconf +o $0
  243.       }
  244.       {
  245.         ^notice $0 Auto-op is disabled.
  246.       }
  247.     }
  248.     if (rmatch($0 $mdautlk))
  249.     {
  250.       /kick $jnconf $0 <LNK>
  251.     }
  252.     if (rmatch($0!$3@$4 $mdautbk))
  253.     {
  254.       /mode $jnconf -o+b $0 $word(${rmatch($0!$3@$4 $mdautbk)-1} $mdautbk)
  255.       /kick $jnconf $0 <ABK>
  256.     }
  257.   }
  258. }
  259. alias adcomm
  260. {
  261.   if (([$2]==[OP])&&(!ischanop($0 $adchannl)))
  262.   {
  263.     if ([$mdautos]==[On])
  264.     {
  265.       ^notice $0 You have been opped via ToolZ.
  266.       /mode $adchannl +o $0
  267.       ^echo [$toolz] $0 has been opped via a request on ctcp.
  268.     }
  269.     {
  270.       ^notice $0 Ctcp op has been disabled.
  271.       ^echo [$toolz] $0 asked for op but ctcp op is disabled.
  272.     }
  273.   }
  274.   {
  275.     if (([$2]==[OP])&&(ischanop($0 $adchannl)))
  276.     {
  277.       ^notice $0 You are already opped.
  278.     }
  279.   }
  280.   if ([$2]==[INVITE])
  281.   {
  282.     if ([$mdautos]==[On])
  283.     {
  284.       /invite $0 $adchannl
  285.       ^echo [$toolz] Inviting $0 under request from a ctcp.
  286.       ^notice $0 You have been invited via ToolZ.
  287.     }
  288.     {
  289.       ^notice $0 Ctcp invite has been disabled.
  290.       ^echo [$toolz] $0 asked for a invite but ctcp invite is disabled.
  291.     }
  292.   }
  293.   if ([$2]==[FLIST])
  294.   {
  295.     ^msg $0 I have $adfiles available.
  296.     ^echo [$toolz] $0 asked for my file list.
  297.   }
  298.   if ([$2]==[GET])
  299.   {
  300.     if (rmatch($3 $adfiles))
  301.     {
  302.       ^dcc send $0 $3
  303.       ^msg $0 $3 is being sent.
  304.       ^echo [$toolz] $0 has been dcc'd $3 via request on ctcp.
  305.     }
  306.     {
  307.       ^msg $0 You must specify a file to be DCC'd.
  308.     }
  309.   }
  310.   if ([$2]==[HELP])
  311.   {
  312.     ^notice $0 -----------------------------------------------------------
  313.     ^notice $0                      ToolZ from EnCiNo
  314.     ^notice $0                     ~~~~~~~~~~~~~~~~~~
  315.     ^notice $0 You are included in the most excellent list of $N
  316.     ^notice $0 the following commands are available to you:
  317.     ^notice $0   /ctcp $N op <Channel>                :For ops. *
  318.     ^notice $0   /ctcp $N invite <Channel>            :For a invite. *
  319.     ^notice $0   /ctcp $N flist                       :For file list.
  320.     ^notice $0   /ctcp $N get <Filename>              :For Dcc of a file.
  321.     ^notice $0 * : If you leave the Channel you will be opped/invited to
  322.     ^notice $0     current channel which is : $C
  323.     ^notice $0 If you abuse this privilege you will be removed from the
  324.     ^notice $0 list. If you have any questions /msg $N !
  325.     ^notice $0 -------------------------------------------------------<Y>-
  326.     ^echo [$toolz] $0 has asked for help.
  327.   }
  328. }
  329. alias ADDcc
  330. {
  331.   if ([$0]==[On])
  332.   {
  333.     ^assign Adautod On
  334.     ^echo [$toolz] Auto DCC get is now on.
  335.   }
  336.   {
  337.     if ([$0]==[Off])
  338.     {
  339.       ^assign Adautod Off
  340.       ^echo [$toolz] Auto DCC get is now off.
  341.     }
  342.     {
  343.       ^echo [$toolz] Auto DCC is $adautod .
  344.     }
  345.   }
  346. }
  347. alias ADOver
  348. {
  349.   if ([$0]==[On])
  350.   {
  351.     ^assign Overwrite On
  352.     ^echo [$toolz] Auto DCC Overwrite is now On.
  353.   }
  354.   {
  355.     if ([$0]==[Off])
  356.     {
  357.       ^assign Overwrite Off
  358.       ^echo [$toolz] Auto DCC Overwrite is now Off.
  359.     }
  360.     {
  361.       ^echo [$toolz] Auto DCC Overwrite is currently $overwrite .
  362.     }
  363.   }
  364. }
  365. alias ADFile
  366. {
  367.   if ([$0])
  368.   {
  369.     ^echo [$toolz] Adding $0- to your file list.
  370.     ^assign adfiles $0- ${adfiles}
  371.   }
  372.   {
  373.     ^echo [$toolz] You have : $adfiles : in your file list.
  374.   }
  375. }
  376. alias ADRfile
  377. {
  378.   if ([$0])
  379.   {
  380.     @ adrfil = 0
  381.     ^assign -adrfilt
  382.     ^assign -adrfilr
  383.     ^assign adtemp Nop
  384.     while ([$(#adfiles)]>arfil)
  385.     {
  386.       if (match($0 $word($arfil $adfiles)))
  387.       {
  388.         ^assign adtemp Yeup
  389.         ^assign adrfilt $word($adrfil $adfiles) ${adrfilt}
  390.       }
  391.       {
  392.         ^assign adrfilr $word($adrfil $adfiles) ${adrfilr}
  393.       }
  394.       @ arfil = arfil + 1
  395.     }
  396.     if ([$adtemp]==[Yeup])
  397.     {
  398.       ^assign $adfiles $adrfilt
  399.       ^echo [$toolz] $adrfilr has/have been removed from your file list.
  400.     }
  401.     {
  402.       ^echo [$toolz] No files with that name/filter were found.
  403.     }
  404.   }
  405.   {
  406.     ^echo [$toolz] You must specify a filename/filter.
  407.   }
  408. }
  409. alias ADAdcc
  410. {
  411.   if ([$0]==[on])
  412.   {
  413.     ^assign Adadcc On
  414.     ^echo [$toolz] Auto DCC is now On.
  415.   }
  416.   {
  417.     if ([$0]==[off])
  418.     {
  419.       ^assign Adadcc Off
  420.       ^echo [$toolz] Auto DCC is now Off.
  421.     }
  422.     {
  423.       ^echo [$toolz] Auto DCC is $adadcc .
  424.     }
  425.   }
  426. }
  427. alias ADList
  428. {
  429.   ^echo [$toolz] You have the following people in your excellent list.
  430.   @ ADListv = 0
  431.   while ([$(#mdautop)]>adlistv)
  432.   {
  433.     ^echo [$toolz] $word($adlistv $mdautop)
  434.     @ adlistv = adlistv + 1
  435.   }
  436.   ^echo [$toolz] End of the list. A total of $Adlistv people.
  437. }
  438. alias ADCheck
  439. {
  440.   if ([$0])
  441.   {
  442.     userhost $0 -CMD if ([$3]!=[<UNKNOWN>])
  443.     {
  444.       ^assign adcheckv $0!$3@$4
  445.       if (rmatch($adcheckv $mdautop))
  446.       {
  447.         ^echo [$toolz] $0 is on your excellent list.
  448.       }
  449.       {
  450.         ^echo [$toolz] $0 is not on your excellent list.
  451.       }
  452.     }
  453.     {
  454.       ^echo [$toolz] I cannot find $0 on IRC.
  455.     }
  456.   }
  457.   {
  458.     ^echo [$toolz] You must specify a nick.
  459.   }
  460. }
  461. alias bk
  462. {
  463.   ^Bkick $0-
  464. }
  465. alias nk
  466. {
  467.   ^nkick $0-
  468. }
  469. alias rk
  470. {
  471.   ^rkick
  472. }
  473. alias lk
  474. {
  475.   ^lkick
  476. }
  477. alias fk
  478. {
  479.   ^fkick $0-
  480. }
  481. alias fbk
  482. {
  483.   ^fbkick $0-
  484. }
  485. alias nkick
  486. {
  487.   if ([$0])
  488.   {
  489.     if ([$1])
  490.     {
  491.       ^assign nkres $1- <NK>
  492.     }
  493.     {
  494.       ^assign nkres <NK>
  495.     }
  496.     ^Kick * $0 $nkres
  497.   }
  498.   {
  499.     ^kcerror
  500.   }
  501. }
  502. alias rkick
  503. {
  504.   ^set display off
  505.   ^on names *
  506.   {
  507.     ^assign rndkck $1-
  508.   }
  509.   ^names $C
  510.   wait
  511.   ^set display on
  512.   ^assign rktmp no
  513.   @ rcnt = 0
  514.   ^echo [$toolz] RKick started...
  515.   while ([$(#rndkck)]>rcnt)
  516.   {
  517.     if (!match(@* $word($rcnt $rndkck)))
  518.     {
  519.       if ([$word($rcnt $rndkck)]!=[$N])
  520.       {
  521.         if ([!$word($rcnt $rndkck)]!=[!])
  522.         {
  523.           ^assign lamerz $word($rcnt $rndkck) ${lamerz}
  524.           ^assign rktmp ppl
  525.         }
  526.       }
  527.     }
  528.     @ rcnt = rcnt + 1
  529.   }
  530.   @ rcnt = 0
  531.   @ hikik = 1
  532.   @ hinum = 0
  533.   while ([$(#lamerz)]>=rcnt)
  534.   {
  535.     @ rkrnd = rand(100)
  536.     if (rkrnd>=hinum)
  537.     {
  538.       @ hinum = rkrnd
  539.       @ hikik = rcnt
  540.     }
  541.     @ rcnt = rcnt + 1
  542.   }
  543.   if ([$rktmp]==[ppl])
  544.   {
  545.     ^assign kiklamr $word($hikik $lamerz)
  546.     ^kick * $kiklamr <RandomKick>
  547.     ^notice $kiklamr You have been randomly kicked from $C by RKick.
  548.     ^echo [$toolz] $kiklamr has been kicked by RKick.
  549.   }
  550.   {
  551.     ^Echo [$toolz] No one to kick! Everyone is opped on $C .
  552.   }
  553.   ^assign -lamerz
  554.   ^on names -
  555. }
  556. alias lkick
  557. {
  558.   ^set display off
  559.   ^on names *
  560.   {
  561.     ^assign lamkick $1-
  562.   }
  563.   ^names $C
  564.   wait
  565.   ^set display on
  566.   ^assign lktmp no
  567.   @ lcnt = 0
  568.   ^echo [$toolz] LKick started...
  569.   while ([$(#lamkick)]>lcnt)
  570.   {
  571.     if (!match(@* $word($lcnt $lamkick)))
  572.     {
  573.       if ([$word($lcnt $lamkick)]!=[$N])
  574.       {
  575.         if ([!$word($lcnt $lamkick)]!=[!])
  576.         {
  577.           ^assign bkicked $word($lcnt $lamkick) ${bkicked}
  578.           ^assign lktmp ppl
  579.         }
  580.       }
  581.     }
  582.     @ lcnt = lcnt + 1
  583.   }
  584.   if ([$lktmp]==[ppl])
  585.   {
  586.     @ lcnt = 0
  587.     while ([$(#bkicked)]>=lcnt)
  588.     {
  589.       ^kick * $word($lcnt $bkicked) <LK>
  590.       @ lcnt = lcnt + 1
  591.     }
  592.     ^echo [$toolz] $bkicked has been kicked with LKick.
  593.     ^say $bkicked has been kicked by LKick.
  594.   }
  595.   {
  596.     ^echo [$toolz] No one to kick! Everyone is opped on $C .
  597.   }
  598.   ^on names -
  599.   ^assign -bkicked
  600. }
  601. alias fkick
  602. {
  603.   if ([$0])
  604.   {
  605.     if ([$1])
  606.     {
  607.       ^assign fkres $1- <FK $0>
  608.     }
  609.     {
  610.       ^assign fkres <FK $0>
  611.     }
  612.     ^echo [$toolz] FKick on $0 started.
  613.     ^assign fkfilt $0
  614.     ^assign -ftbkick
  615.     ^on -who *
  616.     {
  617.       if (match($fkfilt $1!$3@$4))
  618.       {
  619.         /assign ftbkick $1 ${ftbkick}
  620.       }
  621.     }
  622.     ^set display off
  623.     /who $C
  624.     wait
  625.     ^set display on
  626.     @ fkcnt = 0
  627.     while ([$(#ftbkick)]>fkcnt)
  628.     {
  629.       /kick * $word($fkcnt $ftbkick) $fkres
  630.       @ fkcnt = fkcnt + 1
  631.     }
  632.     ^echo [$toolz] $ftbkick was kicked from $C with the filter $0 .
  633.     ^on who -
  634.   }
  635.   {
  636.     ^echo [$toolz] You must specify a filter to kick. (/fkick <Filter> <Reason>)
  637.   }
  638. }
  639. alias fbkick
  640. {
  641.   if ([$0])
  642.   {
  643.     if ([$1])
  644.     {
  645.       ^assign fkres $1- <FBK $0>
  646.     }
  647.     {
  648.       ^assign fkres <FBK $0>
  649.     }
  650.     ^echo [$toolz] FBKick on $0 started.
  651.     ^assign fkfilt $0
  652.     ^assign -ftbkick
  653.     ^on -who *
  654.     {
  655.       if (match($fkfilt $1!$3@$4))
  656.       {
  657.         /assign ftbkick $1 ${ftbkick}
  658.       }
  659.     }
  660.     ^set display off
  661.     /who $C
  662.     wait
  663.     ^set display on
  664.     @ fkcnt = 0
  665.     /mode * +b $fkfilt
  666.     while ([$(#ftbkick)]>fkcnt)
  667.     {
  668.       /kick * $word($fkcnt $ftbkick) $fkres
  669.       @ fkcnt = fkcnt + 1
  670.     }
  671.     ^echo [$toolz] $ftbkick was kicked from $C with the filter $0 .
  672.     ^on who -
  673.   }
  674.   {
  675.     ^echo [$toolz] You must specify a filter to kick. (/fkick <Filter> <Reason>)
  676.   }
  677. }
  678.  
  679. alias knerror
  680. {
  681.   ^echo [$toolz] Error, you need to specify a nick.
  682. }
  683. alias kccant
  684. {
  685.   ^echo [$toolz] You cannot do this as you are not a channel op.
  686. }
  687. ^assign defban n
  688. alias bandef
  689. {
  690.   if ([$0]==[n])
  691.   {
  692.     @ defban = [n]
  693.   }
  694.   if ([$0]==[e])
  695.   {
  696.     @ defban = [e]
  697.   }
  698.   if ([$0]==[h])
  699.   {
  700.     @ defban = [h]
  701.   }
  702.   if ([$0]==[s])
  703.   {
  704.     @ defban = [s]
  705.   }
  706.   if ([$defban]==[n])
  707.   {
  708.     ^echo [$toolz] Default ban is normal.
  709.   }
  710.   if ([$defban]==[e])
  711.   {
  712.     ^echo [$toolz] Default ban is elite.
  713.   }
  714.   if ([$defban]==[h])
  715.   {
  716.     ^echo [$toolz] Default ban is host.
  717.   }
  718.   if ([$defban]==[s])
  719.   {
  720.     ^echo [$toolz] Default ban is screw.
  721.   }
  722. }
  723. alias Ban
  724. {
  725.   if ([$0])
  726.   {
  727.     @ param = [$0]
  728.     if (index(! $0)!=-1)
  729.     {
  730.       @ band = [$1]
  731.     }
  732.     {
  733.       @ band = [$0]
  734.     }
  735.     if ([$param]==[$band])
  736.     {
  737.       @ param = [!$defban]
  738.     }
  739.     Userhost $band -CMD if ([$4]!=[<UNKNOWN>])
  740.     {
  741.       @ theban = []
  742.       if ([$param]==[!n])
  743.       {
  744.         /nban $3 $4 theban
  745.         wait
  746.         ^echo [$toolz] Banning $0 with a normal ban.
  747.       }
  748.       if ([$param]==[!e])
  749.       {
  750.         /eban $3 $4 theban
  751.         wait
  752.         ^echo [$toolz] Banning $0 with a elite ban.
  753.       }
  754.       if ([$param]==[!h])
  755.       {
  756.         /hban $3 $4 theban
  757.         wait
  758.         ^echo [$toolz] Banning $0 with a host ban.
  759.       }
  760.       if ([$param]==[!s])
  761.       {
  762.         /sban $3 $4 theban
  763.         wait
  764.         ^echo [$toolz] Banning $0 with a screw ban.
  765.       }
  766.       if ([$param]==[!?])
  767.       {
  768.         /bantype
  769.       }
  770.       {
  771.         if ([$theban]==[])
  772.         {
  773.           /nban $3 $4 theban
  774.           wait
  775.           ^echo [$toolz] Banning $0 with a normal (Default) ban.
  776.         }
  777.         /mode * +b $theban
  778.       }
  779.     }
  780.     {
  781.       /echo [$toolz] Cannot find $0 on IRC.
  782.     }
  783.   }
  784.   {
  785.     /echo [$toolz] Useage : /Ban <BanType> <Nick> : /BanType for info on bans.
  786.   }
  787. }
  788. alias bkick
  789. {
  790.   if ([$0])
  791.   {
  792.     @ param = [$0]
  793.     if (index(! $0)!=-1)
  794.     {
  795.       @ band = [$1]
  796.       @ kbreason = [$2-]
  797.     }
  798.     {
  799.       @ band = [$0]
  800.       @ kbreason = [$1-]
  801.     }
  802.     if ([$kbreason])
  803.     {
  804.       ^assign kbreason ${kbreason} <BK>
  805.     }
  806.     {
  807.       ^assign kbreason <BK>
  808.     }
  809.     if ([$param]==[$band])
  810.     {
  811.       @ param = [!$defban]
  812.     }
  813.     Userhost $band -CMD if ([$4]!=[<UNKNOWN>])
  814.     {
  815.       @ theban = []
  816.       if ([$param]==[!n])
  817.       {
  818.         /nban $3 $4 theban
  819.         wait
  820.       }
  821.       if ([$param]==[!e])
  822.       {
  823.         /eban $3 $4 theban
  824.         wait
  825.       }
  826.       if ([$param]==[!h])
  827.       {
  828.         /hban $3 $4 theban
  829.         wait
  830.       }
  831.       if ([$param]==[!s])
  832.       {
  833.         /sban $3 $4 theban
  834.         wait
  835.       }
  836.       if ([$param]==[!?])
  837.       {
  838.         /bantype
  839.       }
  840.       {
  841.         if ([$theban]==[])
  842.         {
  843.           /nban $3 $4 theban
  844.           wait
  845.         }
  846.         /mode * -o+b $0 $theban
  847.         /kick * $0 $kbreason
  848.       }
  849.     }
  850.     {
  851.       /echo [$toolz] Cannot find $0 on IRC.
  852.     }
  853.   }
  854.   {
  855.     /echo [$toolz] Useage : /BKick <BanType> <Nick> <Reason>
  856.     /echo [$toolz] /BanType for info on bans.
  857.   }
  858. }
  859. alias bantype
  860. {
  861.   /echo [$toolz] Ban types : (Blah!Example@Elite.bans.com)
  862.   /echo [$toolz] !N - Normal *!*xample@*.bans.com
  863.   /echo [$toolz] !S - Screw  *!*E??mp?e@*.b??s.?om
  864.   /echo [$toolz] !E - Elite  *!*?x?m?l?@*.????.???
  865.   /echo [$toolz] !H - Host   *!*@*.bans.com
  866. }
  867. alias sban
  868. {
  869.   @ cnt = 0
  870.   @ tomake = [$0@$1]
  871.   @ temp = [$1]
  872.   ^assign tomake $0@*$right(${@temp-index(. $1)} $1)
  873.   @ temp = []
  874.   if ((mid($cnt 1 $0)==[~])||(mid($cnt 1 $0)==[#]))
  875.   {
  876.     @ cnt = 1
  877.   }
  878.   while (mid($cnt 1 $tomake)!=[])
  879.   {
  880.     @ rnd = rand(10)
  881.     if ((mid($cnt 1 $tomake)==[*])||(mid($cnt 1 $tomake)==[@])||(mid($cnt 1 $tomake)==[.])||(mid($cnt 1 $tomake)==[])||(mid($cnt 1 $tomake)==[]))
  882.     {
  883.       @ temp = [$temp$mid($cnt 1 $tomake)]
  884.     }
  885.     {
  886.       if (rnd>4)
  887.       {
  888.         @ temp = [$temp?]
  889.       }
  890.       {
  891.         @ temp = [$temp$mid($cnt 1 $tomake)]
  892.       }
  893.     }
  894.     @ cnt = cnt + 1
  895.   }
  896.   ^assign $2 *!*$temp
  897. }
  898. alias eban
  899. {
  900.   @ cnt = 0
  901.   @ flag = 0
  902.   @ temp2 = []
  903.   if ((mid($cnt 1 $0)==[~])||(mid($cnt 1 $0)==[#]))
  904.   {
  905.     @ cnt = 1
  906.   }
  907.   while (mid($cnt 1 $0)!=[])
  908.   {
  909.     if ((mid($cnt 1 $0)!=[])&&(mid($cnt 1 $0)!=[]))
  910.     {
  911.       if (flag==0)
  912.       {
  913.         ^assign temp2 ${temp2}$mid($cnt 1 $0)
  914.         @ flag = 1
  915.       }
  916.       {
  917.         ^assign temp2 ${temp2}?
  918.         @ flag = 0
  919.       }
  920.     }
  921.     {
  922.       ^assign temp2 ${temp2}$mid($cnt 1 $0)
  923.     }
  924.     @ cnt = cnt + 1
  925.   }
  926.   @ tstr = [$1]
  927.   @ tstr = [$right(${@tstr-index(. $1)} $1)]
  928.   @ cnt = 0
  929.   @ temp = []
  930.   while (mid($cnt 1 $tstr)!=[])
  931.   {
  932.     if (mid($cnt 1 $tstr)!=[.])
  933.     {
  934.       ^assign temp ${temp}?
  935.     }
  936.     {
  937.       ^assign temp ${temp}.
  938.     }
  939.     @ cnt = cnt + 1
  940.   }
  941.   ^assign $2 *!*$temp2@*$temp
  942. }
  943. alias nban
  944. {
  945.   @ uname = [$0]
  946.   @ uname = [uname] - 1
  947.   @ tamp = [$1]
  948.   ^assign $2 *!*$mid(1 $uname $0)@*$right(${@tamp-index(. $1)} $1)
  949. }
  950. alias hban
  951. {
  952.   @ tamp = [$1]
  953.   ^assign $2 *!*@*$right(${@tamp-index(. $1)} $1)
  954. }
  955. ^on -raw_irc "% MODE *"
  956. {
  957.   @ mdcnt = 0
  958.   @ nixcnt = 0
  959.   ^assign mde +
  960.   ^assign mdech $3
  961.   ^assign nix $4-
  962.   ^assign mdchnl $2
  963.   ^assign mdlam $0
  964.   Userhost $N -cmd if ([$3])
  965.   {
  966.     ^assign ownadd $0!$3@$4
  967.   }
  968.   if (([$3]==[-ooo])&&([$left($index(! $0) $0)]!=[$N])&&([$mdzmdp]==[On]))
  969.   {
  970.     /kick $mdchnl $left($index(! $0) $0) <MegaDeop>
  971.   }
  972.   while (mid($mdcnt 1 $mdech)!=[])
  973.   {
  974.     ^assign mdecc $mid($mdcnt 1 $mdech)
  975.     if (([$mdecc]==[-])||([$mdecc]==[+]))
  976.     {
  977.       ^assign mde $mdecc
  978.     }
  979.     {
  980.       if (match($mde$mdecc +b -b +o -o +k -k +l +v -v))
  981.       {
  982.         if ([$mde$mdecc]==[+b])
  983.         {
  984.           if (match($word($nixcnt $nix) $ownadd))
  985.           {
  986.             ^echo [$toolz] Ban On You Detected by $mdlam !
  987.             if ([$isaway]==[Yeup])
  988.             {
  989.               ^eval exec echo "/echo :*: You were banned by $mdlam  on $2 . - $word($nixcnt $nix)" >> $awayfle
  990.             }
  991.             if ([$left($index(! $mdlam) $mdlam)]!=[$N])
  992.             {
  993.               /mode $mdchnl -ob $left($index(! $mdlam) $mdlam) $word($nixcnt $nix)
  994.             }
  995.           }
  996.         }
  997.         if ([$mde$mdecc]==[-o])
  998.         {
  999.           if (([$isaway]==[Yeup])&&([$word($nixcnt $nix)]==[$N]))
  1000.           {
  1001.             ^eval exec echo "/echo :*: You were deopped by $mdlam  on $2 ." >> $awayfle
  1002.           }
  1003.           Userhost $word($nixcnt $nix) -CMD if ([$4]!=[<UNKNOWN>])
  1004.           {
  1005.             ^assign mddeop $0!$3@$4
  1006.           }
  1007.           if ((match($mddeop $mdautop))&&([$mdautos]==[On])&&(!ischanop($left($index(! $mddeop) $mddeop) $mdchnl)))
  1008.           {
  1009.             /mode $mdchnl +o $left($index(! $mddeop) $mddeop)
  1010.           }
  1011.         }
  1012.         if ([$mde$mdecc]==[+k])
  1013.         {
  1014.           ^assign chankey $word($nixcnt $nix)
  1015.         }
  1016.         if ([$mde$mdecc]==[+o])
  1017.         {
  1018.           if (([$isaway]==[Yeup])&&([$word($nixcnt $nix)]==[$N]))
  1019.           {
  1020.             ^eval exec echo "/echo :*: You were opped by $mdlam  on $2 ." >> $awayfle
  1021.           }
  1022.         }
  1023.         @ nixcnt = nixcnt + 1
  1024.       }
  1025.     }
  1026.     @ mdcnt = mdcnt + 1
  1027.   }
  1028.   if ([$lckdmod]!=[none])
  1029.   {
  1030.     if ([$left($index(! $mdlam) $mdlam)]!=[$N])
  1031.     {
  1032.       /mode $mdchnl $lckdmod
  1033.     }
  1034.   }
  1035. }
  1036. alias nokey
  1037. {
  1038.   /mode * -k $chankey
  1039. }
  1040. alias MDLock
  1041. {
  1042.   if ([$0])
  1043.   {
  1044.     if ([$0]==[none])
  1045.     {
  1046.       ^assign lckdmod None
  1047.       ^echo [$toolz] Mode unlocked.
  1048.     }
  1049.     {
  1050.       ^assign lckdmod $0-
  1051.       ^echo [$toolz] Mode locked with $0- .
  1052.     }
  1053.   }
  1054.   {
  1055.     ^echo [$toolz] Mode lock is $lckdmod .
  1056.   }
  1057. }
  1058. alias MDProt
  1059. {
  1060.   if ([$0]==[off])
  1061.   {
  1062.     ^echo [$toolz] MegaDeop Protection is now off.
  1063.     ^assign mdzmdp Off
  1064.   }
  1065.   {
  1066.     if ([$0]==[on])
  1067.     {
  1068.       ^echo [$toolz] MegaDeop Protection is now on.
  1069.       ^assign mdzmdp On
  1070.     }
  1071.     {
  1072.       ^Echo [$toolz] MegaDeop Protection is $mdzmdp
  1073.     }
  1074.   }
  1075. }
  1076. alias CDBan
  1077. {
  1078.   ^echo [$toolz] Clearing bans.
  1079.   ^set display off
  1080.   ^assign cdbanz $0!$3@$4
  1081.   ^assign -cbunband
  1082.   ^on -367 *
  1083.   {
  1084.     ^assign cbunband $2 ${cbunband}
  1085.   }
  1086.   ^mode $C +b
  1087.   wait
  1088.   ^unbanlop $cbunband
  1089.   ^assign -cdbanz
  1090.   ^set display on
  1091.   ^on 367 -
  1092. }
  1093. alias DBan
  1094. {
  1095.   Userhost $0 -CMD if ([$3])
  1096.   {
  1097.     ^set display off
  1098.     ^assign dbanz $0!$3@$4
  1099.     ^assign -bunband
  1100.     ^on -367 *
  1101.     {
  1102.       if (match($2 $dbanz))
  1103.       {
  1104.         ^assign bunband $2 ${bunband}
  1105.       }
  1106.     }
  1107.     ^mode $C +b
  1108.     wait
  1109.     ^unbanlop $bunband
  1110.     ^assign -dbanz
  1111.     ^set display on
  1112.   }
  1113. }
  1114. alias unbanlop
  1115. {
  1116.   if ([$3])
  1117.   {
  1118.     /mode * -bbb $0 $1 $2
  1119.     /unbanlop $3-
  1120.   }
  1121.   {
  1122.     if ([$2])
  1123.     {
  1124.       /mode * -bbb $0 $1 $2
  1125.     }
  1126.     {
  1127.       if ([$1])
  1128.       {
  1129.         /mode * -bb $0 $1
  1130.       }
  1131.       {
  1132.         if ([$0])
  1133.         {
  1134.            /mode * -b $0
  1135.         }
  1136.       }
  1137.     }
  1138.   }
  1139. }
  1140. alias banlop
  1141. {
  1142.   if ([$3])
  1143.   {
  1144.     /mode * +bbb $0 $1 $2
  1145.     /banlop $3-
  1146.   }
  1147.   {
  1148.     if ([$2])
  1149.     {
  1150.       /mode * +bbb $0 $1 $2
  1151.     }
  1152.     {
  1153.       if ([$1])
  1154.       {
  1155.         /mode * +bb $0 $1
  1156.       }
  1157.       {
  1158.         if ([$0])
  1159.         {
  1160.            /mode * +b $0
  1161.         }
  1162.       }
  1163.     }
  1164.   }
  1165. }
  1166. alias dobans
  1167. {
  1168.   ^echo [$toolz] Doing bans.
  1169.   banlop $mdautbk
  1170. }
  1171. alias mdcant
  1172. {
  1173.   ^echo [$toolz] You can not do this as your are not a channel op.
  1174. }
  1175. alias mdop
  1176. {
  1177.   ^echo [$toolz] Megadeoping $C , its on your head dewd.
  1178.   ^set display off
  1179.   ^on -who *
  1180.   {
  1181.     if (([$1]!=[$N])&&(ischanop($1 $C)))
  1182.     {
  1183.       ^assign mdopz $1 ${mdopz}
  1184.     }
  1185.   }
  1186.   ^who *
  1187.   wait
  1188.   ^set display on
  1189.   @ mdopcnt = 1
  1190.   while ([$(#mdopz)]>=mdopcnt)
  1191.   {
  1192.     /quote mode $C -oo $word(${mdopcnt-1} $mdopz) $word($mdopcnt $mdopz)
  1193.     @ mdopcnt = mdopcnt + 2
  1194.   }
  1195. }
  1196. alias op
  1197. {
  1198.   if ([$3])
  1199.   {
  1200.     /op $3-
  1201.     /mode * +ooo $0 $1 $2
  1202.   }
  1203.   {
  1204.     /mode * +ooo $0 $1 $2
  1205.   }
  1206. }
  1207. alias chanst
  1208. {
  1209.   if ([$0])
  1210.   {
  1211.     ^assign chnl $0
  1212.   }
  1213.   {
  1214.     ^assign chnl $C
  1215.   }
  1216.   @ cnscnt = 0
  1217.   @ opedpl = 0
  1218.   @ unoppl = 0
  1219.   @ awaypl = 0
  1220.   @ herepl = 0
  1221.   @ ircopl = 0
  1222.   ^assign -ircopz
  1223.   ^on -who *
  1224.   {
  1225.     if (index(@ $2)!=-1)
  1226.     {
  1227.       @ opedpl = opedpl + 1
  1228.     }
  1229.     {
  1230.       @ unoppl = unoppl + 1
  1231.     }
  1232.     if (index(H $2)!=-1)
  1233.     {
  1234.       @ herepl = herepl + 1
  1235.     }
  1236.     if (index(G $2)!=-1)
  1237.     {
  1238.       @ awaypl = awaypl + 1
  1239.     }
  1240.     if (index(* $2)!=-1)
  1241.     {
  1242.       @ ircopl = ircopl + 1
  1243.       ^assign ircopz ${ircopz} $1
  1244.     }
  1245.     @ cnscnt = cnscnt + 1
  1246.   }
  1247.   ^set display off
  1248.   /who $chnl
  1249.   wait
  1250.   ^on who -
  1251.   ^set display on
  1252.   /echo [$toolz] Channel stats for $chnl :
  1253.   /echo [$toolz] There are $cnscnt assholes on the channel.
  1254.   /echo [$toolz] There are $opedpl opped idiots and $unoppl unoped lamers.
  1255.   /echo [$toolz] There are $herepl here losers and $awaypl away fags.
  1256.   if ([$ircopz])
  1257.   {
  1258.     /echo [$toolz] There are $ircopl IRC-Ops. -$ircopz
  1259.   }
  1260.   {
  1261.     /echo [$toolz] There are $ircopl IRC-Ops.
  1262.   }
  1263. }
  1264. ^on ^msg "% ?DCC"
  1265. {
  1266.   Userhost $0 -CMD if ([$4]!=[<UNKNOWN>])
  1267.   {
  1268.     ^echo [$toolz] Possible flood from $0!$3@$4 .
  1269.     ^ignore *@$4 all
  1270.     ^notice $0 A Possible flood has been detected by you.
  1271.     ^notice $0 You are now being ignored.
  1272.   }
  1273. }
  1274. ^on ^msg *
  1275. {
  1276.   if ([$1]==[KILL])
  1277.   {
  1278.     ^assign testkill $2
  1279.     Userhost $N -CMD if ([$4])
  1280.     {
  1281.       ^assign youraddy $3@$4
  1282.     }
  1283.     Userhost $0 -CMD if ([$4])
  1284.     {
  1285.       if ([$killpw])
  1286.       {
  1287.         if ([$killpw]==[$testkill])
  1288.         {
  1289.           if ([$3@$4]==[$youraddy])
  1290.           {
  1291.             /notice $0 Terminating under request. (User@Host + PW match)
  1292.             ^echo [$toolz] $0 has killed you.
  1293.             //exit <Killed by $0>
  1294.           }
  1295.         }
  1296.       }
  1297.     }
  1298.   }
  1299.   if (match(*** $1-))
  1300.   {
  1301.     Userhost $0 -CMD if ([$3])
  1302.     {
  1303.       ^echo [$toolz] Possible MSG flood by someone on $0!$3@$4 .
  1304.       ^ignore *@$4 msgs
  1305.       ^notice $0 A possible MSG flood has been detected by you.
  1306.       ^notice $0 All MSG's from you are now being ignored.
  1307.     }
  1308.   }
  1309.   {
  1310.     ^echo *$0* $1-
  1311.     if ([$isaway]==[Yeup])
  1312.     {
  1313.       ^assign logtext $strip(;[](){}"'` :$0: $1-)
  1314.       ^eval exec echo "/echo $logtext " >> $awayfle
  1315.       ^notice $0 Your message has been logged. ToolZ $version
  1316.     }
  1317.     if ([*$0* $1-]==[$lastmes])
  1318.     {
  1319.       ^echo [$toolz] Possible message flood, from $0 triggered by Multiple Message.
  1320.       ^notice $0 Possible message flood has been detected by you.
  1321.       ^notice $0 Never send me more than one msg containing the same letters
  1322.       ^notice $0 Everthing apart from public messages are now being ignored.
  1323.       ^notice $0 Now you are paying for your mistakes! Better luck next time!
  1324.       Userhost $0 -CMD if ([$3])
  1325.       {
  1326.         ^ignore *@$4 All -public
  1327.       }
  1328.     }
  1329.     ^assign lastmes *$0* $1-
  1330.   }
  1331. }
  1332. ^on ^send_msg *
  1333. {
  1334.   /echo -> *$0* $1-
  1335. }
  1336. ^on ^notice *
  1337. {
  1338.   if (match(*** $1-))
  1339.   {
  1340.     Userhost $0 -CMD if ([$3])
  1341.     {
  1342.       ^echo [$toolz] Possible notice flood by someone on $0!$3@$4 .
  1343.       ^ignore *@$4 notices
  1344.       ^notice $0 A possible NOTICE flood has been detected by you.
  1345.       ^notice $0 All NOTICE's from you are now being ignored.
  1346.     }
  1347.   }
  1348.   {
  1349.     ^echo -$0- $1-
  1350.   }
  1351. }
  1352. alias unignore
  1353. {
  1354.   Userhost $0 -CMD if ([$4]!=[<UNKNOWN>])
  1355.   {
  1356.     /ignore *@$4 none
  1357.   }
  1358. }
  1359. alias setaway
  1360. {
  1361.   if ([$0])
  1362.   {
  1363.     ^assign reason $0-
  1364.   }
  1365.   {
  1366.     ^assign reason $defumes
  1367.   }
  1368.   ^away I am away - $reason
  1369.   /me is away - $reason - any messages will be logged.
  1370.   ^assign isaway Yeup
  1371.   ^eval exec echo "/echo >> Set away - $reason <<" >> $awayfle
  1372. }
  1373. alias setback
  1374. {
  1375.   ^assign isaway Nope
  1376.   /me is back.
  1377.   ^away
  1378.   /load awaymes.yaz
  1379. }
  1380. alias idlemes
  1381. {
  1382.   if ([$0])
  1383.   {
  1384.     ^assign idlemes $0-
  1385.     ^echo [$toolz] Auto away message now : ' $0- '
  1386.   }
  1387.   {
  1388.     ^echo [$toolz] Auto away message : ' $idlemes '
  1389.   }
  1390. }
  1391. alias defmes
  1392. {
  1393.   if ([$0])
  1394.   {
  1395.     ^assign defumes $0-
  1396.     ^echo [$toolz] Default away message now : ' $0- '
  1397.   }
  1398.   {
  1399.     ^echo [$toolz] Default away message : ' $defumes '
  1400.   }
  1401. }
  1402. alias clearmes
  1403. {
  1404.   ^exec rm awaymes.yaz
  1405. }
  1406. alias dirlm
  1407. {
  1408.   if ([$0])
  1409.   {
  1410.     /msg $0 $lastmes
  1411.   }
  1412.   {
  1413.     /say $lastmes
  1414.   }
  1415. }
  1416. alias sve
  1417. {
  1418.   ^echo [$toolz] Save started.
  1419.   ^exec rm $backadop
  1420.   wait %exec
  1421.   ^exec mv $adop $backadop
  1422.   wait %exec
  1423.   ^exec -name toolzsve cat > $adop
  1424.   ^msg %toolzsve # Data file for toolz.irc
  1425.   wait
  1426.   ^msg %toolzsve dovar mdautos $mdautos
  1427.   wait
  1428.   ^msg %toolzsve dovar adautod $adautod
  1429.   wait
  1430.   ^msg %toolzsve dovar overwrite $overwrite
  1431.   wait
  1432.   ^msg %toolzsve dovar mdzmdp $mdzmdp
  1433.   wait
  1434.   ^msg %toolzsve dovar lckdmod $lckdmod
  1435.   wait
  1436.   ^msg %toolzsve dovar ainv $ainv
  1437.   wait
  1438.   ^msg %toolzsve dovar alarmt $alamrt
  1439.   wait
  1440.   ^msg %toolzsve dovar alarm $alarm
  1441.   wait
  1442.   ^msg %toolzsve dovar autoaway $autoaway
  1443.   wait
  1444.   ^msg %toolzsve dovar idleaway $idleaway
  1445.   wait
  1446.   ^msg %toolzsve dovar dstog $dstog
  1447.   wait
  1448.   ^msg %toolzsve dovar killpw $killpw
  1449.   wait
  1450.   ^msg %toolzsve dovar defban $defban
  1451.   wait
  1452.   ^msg %toolzsve dovar defumes $defumes
  1453.   wait
  1454.   ^msg %toolzsve dovar idlemes $idlemes
  1455.   wait
  1456.   ^msg %toolzsve adaddem $mdautop
  1457.   wait
  1458.   ^msg %toolzsve adaddlk $mdautlk
  1459.   wait
  1460.   ^msg %toolzsve adaddak $mdautbk
  1461.   wait
  1462.   ^msg %toolzsve adaddjn $mdautjn
  1463.   wait
  1464.   ^msg %toolzsve adaddof $mdautof
  1465.   wait
  1466.   ^exec -CLOSE %toolzsve
  1467.   ^echo [$toolz] Same completed.
  1468. }
  1469. alias adlnk
  1470. {
  1471.   if ([$0])
  1472.   {
  1473.     @ lnkcnt = 0
  1474.     ^assign lnktoba $0-
  1475.     ^assign -lnkadadd
  1476.     while ([$(#lnktoba)]>lnkcnt)
  1477.     {
  1478.       if (!rmatch($word($lnkcnt $lnktoba) $mdautlk))
  1479.       {
  1480.         adaddlk $word($lnkcnt $lnktoba)
  1481.         ^assign lnkadadd $word($lnkcnt $lnktoba) ${lnkadadd}
  1482.       }
  1483.       @ lnkcnt = lnkcnt + 1
  1484.     }
  1485.     ^echo [$toolz] $lnkadadd has/have been added to your LNK List.
  1486.   }
  1487.   {
  1488.     ^echo [$toolz] You must specify a nick.
  1489.   }
  1490. }
  1491. alias lnklist
  1492. {
  1493.   ^echo [$toolz] You have |$mdautlk | in yout LNK list.
  1494. }
  1495. ^on -nick *
  1496. {
  1497.   @ nkccnt = 0
  1498.   while ([$(#mdautlk)]>nkccnt)
  1499.   {
  1500.     if (match($word($nkccnt $mdautlk) $1))
  1501.     {
  1502.       /kick * $1 <LNK>
  1503.     }
  1504.     @ nkccnt = nkccnt + 1
  1505.   }
  1506. }
  1507. alias adbk
  1508. {
  1509.   if ([$0])
  1510.   {
  1511.     Userhost $0 -CMD if ([$3])
  1512.     {
  1513.       if ([$4]!=[<UNKNOWN>])
  1514.       {
  1515.         ^assign tempvar $3
  1516.         @ uname = [tempvar] - 1
  1517.         @ tamp = [$4]
  1518.  
  1519.         ^adaddak *!*$mid(1 $uname $3)@*$right(${@tamp-index(. $4)} $4)
  1520.         ^echo [$toolz] $0 has been added to your auto BKick.
  1521.       }
  1522.       {
  1523.         ^echo [$toolz] I cannot find $0 on irc.
  1524.       }
  1525.     }
  1526.   }
  1527.   {
  1528.     ^echo [$toolz] You must specify a nick.
  1529.   }
  1530. }
  1531. alias adbkf
  1532. {
  1533.   if ([$0])
  1534.   {
  1535.     ^adaddak $0
  1536.     ^echo [$toolz] The filter $0 has been addad to your auto BKick.
  1537.   }
  1538.   {
  1539.     ^echo [$toolz] You must specify a filter.
  1540.   }
  1541. }
  1542. alias bklist
  1543. {
  1544.   ^echo [$toolz] Auto BKick list.
  1545.   @ bklcnt = 0
  1546.   while ([$(#mdautbk)]>bklcnt)
  1547.   {
  1548.     ^echo [$toolz] $word($bklcnt $mdautbk)
  1549.     @ bklcnt = bklcnt + 1
  1550.   }
  1551.   ^echo [$toolz] End of list, a total of $bklcnt entries.
  1552. }
  1553. alias remautop
  1554. {
  1555.   if ([$0])
  1556.   {
  1557.     ^assign -opdlist
  1558.     @ rmopcnt = 0
  1559.     while ([$(#mdautop)]>rmopcnt)
  1560.     {
  1561.       if (match($0!*@* $word($rmopcnt $mdautop)))
  1562.       {
  1563.         ^echo [$toolz] $0 has been removed.
  1564.       }
  1565.       {
  1566.         ^assign opdlist $word($rmopcnt $mdautop) ${opdlist}
  1567.       }
  1568.       @ rmopcnt = rmopcnt + 1
  1569.     }
  1570.     ^assign -mdautop
  1571.     ^assign mdautop $opdlist
  1572.   }
  1573.   {
  1574.     ^echo [$toolz] You must specify a nick to be removed.
  1575.   }
  1576. }
  1577. alias remlnk
  1578. {
  1579.   if ([$0])
  1580.   {
  1581.     ^assign -lnklist
  1582.     @ rmlnk = 0
  1583.     while ([$(#mdautlk)]>rmlnk)
  1584.     {
  1585.       if ([$0]!=[$word($rmlnk $mdautlk)])
  1586.       {
  1587.         ^assign lnklist $word($rmlnk $mdautlk) ${lnklist}
  1588.       }
  1589.       {
  1590.         ^echo [$toolz] $0 has been removed.
  1591.       }
  1592.       @ rmlnk = rmlnk + 1
  1593.     }
  1594.     ^assign -mdautlk
  1595.     ^assign mdautlk $lnklist
  1596.   }
  1597.   {
  1598.     ^echo [$toolz] You need to spcify a nick to be removed.
  1599.   }
  1600. }
  1601. alias rembk
  1602. {
  1603.   if ([$0])
  1604.   {
  1605.     Userhost $0 -cmd if ([$4]!=[<UNKNOWN>])
  1606.     {
  1607.       ^assign -bktlist
  1608.       @ rmbk = 0
  1609.  
  1610.       ^assign tempvar $3
  1611.       @ uname = [tempvar] - 1
  1612.       @ tamp = [$4]
  1613.  
  1614.       while ([$(#mdautbk)]>rmbk)
  1615.       {
  1616.         if (match($word($rmbk $mdautbk) $0!$3@$4))
  1617.         {
  1618.           ^echo [$toolz] $0 has been removed.
  1619.         }
  1620.         {
  1621.           ^assign bktlist $word($rmbk $mdautbk) ${bktlist}
  1622.         }
  1623.         @ rmbk = rmbk + 1
  1624.       }
  1625.       ^assign -mdautbk
  1626.       ^assign mdautbk $bktlist
  1627.     }
  1628.     {
  1629.       ^echo [$toolz] Cannot find $0 on irc.
  1630.     }
  1631.   }
  1632.   {
  1633.     ^echo [$toolz] You must specify a nick.
  1634.   }
  1635. }
  1636. alias rembkf
  1637. {
  1638.   if ([$0])
  1639.   {
  1640.     ^assign -bktlist
  1641.     @ rmbk = 0
  1642.     while ([$(#mdautbk)]>rmbk)
  1643.     {
  1644.       if ([$0]!=[$word($rmbk $mdautbk)])
  1645.       {
  1646.         ^assign bktlist $word($rmbk $mdautbk) ${bktlist}
  1647.       }
  1648.       {
  1649.         ^echo [$toolz] $0 has been removed.
  1650.       }
  1651.       @ rmbk = rmbk + 1
  1652.     }
  1653.     ^assign -mdautbk
  1654.     ^assign mdautbk $bktlist
  1655.   }
  1656.   {
  1657.     ^echo [$toolz] You must specify a filter.
  1658.   }
  1659. }
  1660. alias docow
  1661. {
  1662.   /msg $0 (__) <== $1
  1663.   /msg $0 /oo\\________
  1664.   /msg $0 \\  /        \\;/msg $0  \\/      /   \\;/msg $0    \\_|___\\_|/.\\;/msg $0     ||   YY| o '
  1665.   /msg $0     ||    || O <== $2-
  1666.   /msg $0     ^^    ^^
  1667. }
  1668. alias dop
  1669. {
  1670.   if ([$1])
  1671.   {
  1672.     /mode * -o $0
  1673.     /dop $1-
  1674.   }
  1675.   {
  1676.     /mode * -o $0
  1677.   }
  1678. }
  1679. alias FBan
  1680. {
  1681.   /BanLop $0-
  1682. }
  1683. alias m
  1684. {
  1685.   /msg $0 $1-
  1686. }
  1687. /on -raw_irc "% KICK *"
  1688. {
  1689.   if ([$3]==[$N])
  1690.   {
  1691.     /quote join $2
  1692.     if ([$isaway]==[Yeup])
  1693.     {
  1694.       ^assign logtext $strip(;[](){}"'` :$0: You were kicked by $0 from $2 - $3- .)
  1695.       ^eval exec echo "/echo $logtext" >> $awayfle
  1696.     }
  1697.   }
  1698.   if (rmatch($3 $mdautop))
  1699.   {
  1700.     /inv $0 $2
  1701.   }
  1702. }
  1703. /on -msg "% *invite*"
  1704. {
  1705.   if ([$ainv]==[On])
  1706.   {
  1707.     /notice $0 AInv Usage : /msg $N Invite <Channel>
  1708.   }
  1709.   {
  1710.     /notice $0 AInv Usage : /msg $N Invite <Channel> (Auto Invite is disabled)
  1711.   }
  1712. }
  1713. /on -msg "% invite #%"
  1714. {
  1715.   if ([$ainv]==[On])
  1716.   {
  1717.     /inv $0 $2
  1718.   }
  1719.   {
  1720.     /notice $0 -Auto Invite is disabled.-
  1721.   }
  1722. }
  1723. /alias AInv
  1724. {
  1725.   if ([$0]==[On])
  1726.   {
  1727.     ^assign AInv On
  1728.     ^echo [$toolz] Auto Invite now on.
  1729.   }
  1730.   {
  1731.     if ([$0]==[Off])
  1732.     {
  1733.       ^assign AInv Off
  1734.       ^echo [$toolz] Auto Invite now off.
  1735.     }
  1736.     {
  1737.       ^echo [$toolz] Auto invite is $ainv
  1738.     }
  1739.   }
  1740. }
  1741. /on -timer *
  1742. {
  1743.   if (([$0]==[$alarmt])&&([$alarm]==[On]))
  1744.   {
  1745.     clock
  1746.   }
  1747. }
  1748. /alias ALTime
  1749. {
  1750.   ^assign alarmt $0
  1751.   /echo [$toolz] Alarm is now set to $0 . (Alarm is now set on.)
  1752.   ^assign alarm On
  1753. }
  1754. /alias clock
  1755. {
  1756.   /echo [$toolz]     _____               
  1757.   /echo [$toolz]    /     \\    Alarm !! 
  1758.   /echo [$toolz]   /   |   \\   Alarm !! 
  1759.   /echo [$toolz]   |   |/  |   Alarm !! 
  1760.   /echo [$toolz]   |   o   |   Alarm !! 
  1761.   /echo [$toolz]   |       |   Alarm !! 
  1762.   /echo [$toolz]   \\       /   Alarm !! 
  1763.   /echo [$toolz]    \\_____/    Alarm !! 
  1764.   /echo [$toolz]                         
  1765. }
  1766. /alias Alarm
  1767. {
  1768.   if ([$0])
  1769.   {
  1770.     if ([$0]==[On])
  1771.     {
  1772.       /echo [$toolz] Alarm is now On.
  1773.       ^assign alarm On
  1774.     }
  1775.     {
  1776.       if ([$0]==[Off])
  1777.       {
  1778.         /echo [$toolz] Alarm is now Off.
  1779.         ^assign alarm off
  1780.       }
  1781.     }
  1782.   }
  1783.   {
  1784.     /echo [$toolz] Alarm is $alarm . Alarm is set for $alarmt .
  1785.   }
  1786. }
  1787. ^on -idle *
  1788. {
  1789.   if (([$0]==[$idleaway])&&([$isaway]==[Nope])&&([$autoaway]==[On]))
  1790.   {
  1791.     /setaway $idleaway
  1792.     /echo [$toolz] Automatically setting you away.
  1793.   }
  1794. }
  1795. alias autoaway
  1796. {
  1797.   if ([$0]==[On])
  1798.   {
  1799.     ^assign autoaway On
  1800.     ^echo [$toolz] Auto away is now On.
  1801.   }
  1802.   {
  1803.     if ([$0]==[Off])
  1804.     {
  1805.       ^assign autoaway Off
  1806.       ^echo [$toolz] Auto away is now Off.
  1807.     }
  1808.     {
  1809.       ^echo [$toolz] Auto away is $autoaway .
  1810.     }
  1811.   }
  1812. }
  1813. alias autotime
  1814. {
  1815.   if ([$0])
  1816.   {
  1817.     ^assign idleaway $0
  1818.     ^echo [$toolz] Auto setaway idle time is now $0 .
  1819.   }
  1820.   {
  1821.     ^echo [$toolz] Auto setaway idle time is $idleaway .
  1822.   }
  1823. }
  1824. alias clearaop
  1825. {
  1826.   ^assign -mdautop
  1827.   /echo [$toolz] Auto-Op list now cleared.
  1828. }
  1829. alias clearabk
  1830. {
  1831.   ^assign -mdautbk
  1832.   /echo [$toolz] Auto Ban Kick list now cleared.
  1833. }
  1834. alias clearlnk
  1835. {
  1836.   ^assign -mdautlk
  1837.   /echo [$toolz] LNK list now cleared.
  1838. }
  1839. alias clearajn
  1840. {
  1841.   ^assign -mdautjn
  1842.   ^echo [$toolz] Auto Join list now cleared.
  1843. }
  1844. alias adautojn
  1845. {
  1846.   if ([$0])
  1847.   {
  1848.     ^assign mdautjn $0- ${mdautjn}
  1849.     /echo [$toolz] $0- has been added to your auto join list.
  1850.   }
  1851.   {
  1852.     /echo [$toolz] You must specify the channel name.
  1853.   }
  1854. }
  1855. alias remajn
  1856. {
  1857.   if ([$0])
  1858.   {
  1859.     @ ajncnt = 0
  1860.     ^assign -tempjn
  1861.     while ([$(#mdautjn)]>ajncnt)
  1862.     {
  1863.       if ([$word($ajncnt $mdautjn)]==[$0])
  1864.       {
  1865.         /echo [$toolz] $0 has been removed.
  1866.       }
  1867.       {
  1868.         ^assign tempjn $word($ajncnt $mdautjn) ${tempjn}
  1869.       }
  1870.       @ ajncnt = ajncnt + 1
  1871.     }
  1872.     ^assign mdautjn $tempjn
  1873.   }
  1874. }
  1875. alias ajnlist
  1876. {
  1877.   /echo [$toolz] You have | $mdautjn | in your auto join list.
  1878. }
  1879. ^on -invite *
  1880. {
  1881.   if (rmatch($1 $mdautjn))
  1882.   {
  1883.     if ([$ajnflag]==[0])
  1884.     {
  1885.       @ ajnflag = 1
  1886.       if ([$1]!=[$C])
  1887.       {
  1888.         /echo [$toolz] Auto-joining $1 on invite from $0.
  1889.         /join $1
  1890.         wait
  1891.       }
  1892.       @ ajnflag = 0
  1893.     }
  1894.   }
  1895. }
  1896. alias SM
  1897. {
  1898.   if ([$0])
  1899.   {
  1900.     ^assign megames $0-
  1901.     /echo [$toolz] Mega Message set to : $0-
  1902.   }
  1903.   {
  1904.     /echo [$toolz] A message is needed.
  1905.   }
  1906. }
  1907. alias VMM
  1908. {
  1909.   if ([$megames]!=[!NONE!])
  1910.   {
  1911.     /echo [$toolz] Mega message is set to : $megames
  1912.   }
  1913.   {
  1914.     /echo [$toolz] No mega message set.
  1915.   }
  1916. }
  1917. alias MM
  1918. {
  1919.   if ([$0])
  1920.   {
  1921.     if ([$megames]!=[!NONE!])
  1922.     {
  1923.       @ megcnt = 0
  1924.       ^assign megton $0-
  1925.       while ([$(#megton)]>megcnt)
  1926.       {
  1927.         ^msg $word($megcnt $megton) $megames
  1928.         @ megcnt = megcnt + 1
  1929.       }
  1930.       /echo [$toolz] Mega message sent to $0- .
  1931.     }
  1932.     {
  1933.       /echo [$toolz] No Mega Message set.
  1934.     }
  1935.   }
  1936.   {
  1937.     /echo [$toolz] You must specify some nicks to send the message to.
  1938.   }
  1939. }
  1940. alias inv
  1941. {
  1942.   if ([$0])
  1943.   {
  1944.     if ([$1])
  1945.     {
  1946.       /invite $0-
  1947.     }
  1948.     {
  1949.       /invite $0 $C
  1950.     }
  1951.   }
  1952.   {
  1953.     /echo [$toolz] You need to specify a nick to invite.
  1954.   }
  1955. }
  1956. alias uptime
  1957. {
  1958.   /exec -name UPTIME uptime
  1959. }
  1960. alias si
  1961. {
  1962.   /echo [$toolz] Dont be a sucker. /si quits you from IRC.
  1963.   /echo [$toolz] Use //Si or /Exit to quit IRC.
  1964. }
  1965. alias sign
  1966. {
  1967.   /echo [$toolz] Dont be a sucker. /sign quits you from IRC.
  1968.   /echo [$toolz] Use //Sign or /Exit to quit IRC.
  1969. }
  1970. alias signo
  1971. {
  1972.   /echo [$toolz] Dont be a sucker. /signo quits you from IRC.
  1973.   /echo [$toolz] Use //Signo or /Exit to quit IRC.
  1974. }
  1975. alias addfo
  1976. {
  1977.   if ([$0])
  1978.   {
  1979.     @ addfo = 0
  1980.     ^assign toaddfo $0-
  1981.     ^assign -foadded
  1982.     ^assign -foreject
  1983.     while ([$(#toaddfo)]>addfo)
  1984.     {
  1985.       if (!rmatch($word($addfo $toaddfo) $mdautof))
  1986.       {
  1987.         /adaddof $word($addfo $toaddfo)
  1988.         ^assign foadded $word($addfo $toaddfo) ${foadded}
  1989.       }
  1990.       {
  1991.         ^assign foreject $word($addfo $toaddfo) ${foreject}
  1992.       }
  1993.       @ addfo = addfo + 1
  1994.     }
  1995.     if ([$foadded])
  1996.     {
  1997.       ^echo [$toolz] $foadded added to OpFind list.
  1998.     }
  1999.     if ([$foreject])
  2000.     {
  2001.       ^echo [$toolz] $foreject are already on your FindOp list.
  2002.     }
  2003.   }
  2004.   {
  2005.     ^echo [$toolz] You needs to specify nicks to add.
  2006.   }
  2007. }
  2008. alias folist
  2009. {
  2010.   if ([$mdautof])
  2011.   {
  2012.     ^echo [$toolz] Current nicks in your OpFind list :
  2013.     ^echo [$toolz] $mdautof
  2014.   }
  2015.   {
  2016.     ^echo [$toolz] There are no nicks in your FindOp list.
  2017.   }
  2018. }
  2019. alias findop
  2020. {
  2021.   if ([$0])
  2022.   {
  2023.     @ focnt = 0
  2024.     ^assign -fonicks
  2025.     ^echo [$toolz] Sending message $0- to all on findop list. Please wait.
  2026.     while ([$(#mdautof)]>focnt)
  2027.     {
  2028.       ^assign fonicks $word($focnt $mdautof),${fonicks}
  2029.       @ focnt = focnt + 1
  2030.     }
  2031.     ^set display off
  2032.     ^msg $fonicks $0-
  2033.     wait
  2034.     ^set display on
  2035.     ^echo [$toolz] Messages sent.
  2036.   }
  2037.   {
  2038.     ^echo [$toolz] You have to specify a message to send.
  2039.   }
  2040. }
  2041. alias n
  2042. {
  2043.   /notice $0-
  2044. }
  2045. alias c
  2046. {
  2047.   /ctcp $0-
  2048. }
  2049. alias ClearFO
  2050. {
  2051.   ^assign -mdautof
  2052.   ^echo [$toolz] FindOp list now cleared.
  2053. }
  2054. alias RemFO
  2055. {
  2056.   if ([$0])
  2057.   {
  2058.     @ remfo = 0
  2059.     ^assign -tempfo
  2060.     while ([$(#mdautof)]>remfo)
  2061.     {
  2062.       if ([$word($remfo $mdautof)]!=[$0])
  2063.       {
  2064.         ^assign tempfo $word($remfo $mdautof) ${tempfo}
  2065.       }
  2066.       {
  2067.         ^echo [$toolZ] $0 removed.
  2068.       }
  2069.       @ remfo = remfo + 1
  2070.     }
  2071.     ^assign -mdautof
  2072.     ^assign mdautof $tempfo
  2073.   }
  2074.   {
  2075.     ^echo [$toolz] You must specify a nick to remove!
  2076.   }
  2077. }
  2078. alias Aop2Fo
  2079. {
  2080.   ^echo [$toolz] Copying all nicks from your AOp list to your FindOp list.
  2081.   ^assign -newnick
  2082.   @ aoptfo = 0
  2083.   while ([$(#mdautop)]>aoptfo)
  2084.   {
  2085.     ^assign temp $word($aoptfo $mdautop)
  2086.     ^assign newnick $left($index(! $temp) $temp) ${newnick}
  2087.     @ aoptfo = aoptfo + 1
  2088.   }
  2089.   /addfo $newnick
  2090. }
  2091. alias wallit
  2092. {
  2093.   @ opcnt = 0
  2094.   ^assign namescnt $0-
  2095.   while ([$(#namescnt)]>opcnt)
  2096.   {
  2097.     if ([$[1]namescnt]==[@])
  2098.     {
  2099.       /notice $0 [*WallOp*] $wallnote
  2100.     }
  2101.     @ opcnt = opcnt + 1
  2102.   }
  2103.   ^assign temp $C
  2104.   ^echo -> !$temp! $wallnote
  2105. }
  2106. alias wallop
  2107. {
  2108.   if ([$0])
  2109.   {
  2110.     ^assign wallnote $0-
  2111.     ^on ^names *
  2112.     {
  2113.       /wallit $1-
  2114.       ^on -names -
  2115.     }
  2116.     /names $C
  2117.     wait
  2118.   }
  2119. }
  2120. /on ^notice "% %[%WallOp%]% *"
  2121. {
  2122.   /echo !$0! $2-
  2123. }
  2124. alias killpass
  2125. {
  2126.   if ([$0])
  2127.   {
  2128.     ^echo [$toolz] Kill Password now : $0
  2129.     ^echo [$toolz] You can now '/Msg $N Kill $0' if your client freezes.
  2130.     ^echo [$toolz] This will 'kill' the dead client. For security both the
  2131.     ^echo [$toolz] Password and the USER@HOST are checked. ONLY YOU CAN USE THIS.
  2132.     ^assign killpw $0
  2133.   }
  2134.   {
  2135.     if ([$killpw])
  2136.     {
  2137.       ^echo [$toolz] Kill Password is currently : $killpw
  2138.     }
  2139.     {
  2140.       ^echo [$toolz] No Kill Password is currently set.
  2141.     }
  2142.   }
  2143. }
  2144. alias status
  2145. {
  2146.   ^echo [$toolz] Current configuration -
  2147.   ^echo [$toolz] ~~~~~~~~~~~~~~~~~~~~~~~~
  2148.   ^echo [$toolz] Version                 : $version
  2149.   ^echo [$toolz] CTCP Op / Invite        : $mdautos
  2150.   ^echo [$toolz] Auto DCC Get            : $adautod
  2151.   ^echo [$toolz] Auto DCC get Overwrite  : $overwrite
  2152.   ^echo [$toolz] Mega Deop Protection    : $mdzmdp
  2153.   ^echo [$toolz] Mode lock               : $lckdmod
  2154.   ^echo [$toolz] Auto Invite             : $Ainv
  2155.   ^echo [$toolz] Alarm time              : $alarmt
  2156.   ^echo [$toolz] Alarm status            : $alarm
  2157.   ^echo [$toolz] Auto Setaway            : $autoaway
  2158.   ^echo [$toolz] Auto Setaway Time       : $idleaway
  2159.   ^echo [$toolz] Notify on dsynch        : $dstog
  2160.   if ([$killpw])
  2161.   {
  2162.     ^echo [$toolz] Kill Password           : $killpw
  2163.   }
  2164.   {
  2165.     ^echo [$toolz] Kill Password           : None Set
  2166.   }
  2167.   if ([$defban]==[n])
  2168.   {
  2169.     ^echo [$toolz] Default Ban             : Normal
  2170.   }
  2171.   if ([$defban]==[e])
  2172.   {
  2173.     ^echo [$toolz] Default Ban             : Elite
  2174.   }
  2175.   if ([$defban]==[h])
  2176.   {
  2177.     ^echo [$toolz] Default Ban             : Host
  2178.   }
  2179.   if ([$defban]==[s])
  2180.   {
  2181.     ^echo [$toolz] Default Ban             : Screw
  2182.   }
  2183. }
  2184. alias notaop
  2185. {
  2186.   ^echo [$toolz] Adding all yout Auto Ops to your Notify list.
  2187.   ^notif $mdautop
  2188. }
  2189. alias version
  2190. {
  2191.   ^echo [$toolz] Version : $version
  2192. }
  2193. /on ^exec "lstest *"
  2194. {
  2195.   @ lstcnt = 0
  2196.   @ totest = [$0-]
  2197.   while ([$(#totest)]>lstcnt)
  2198.   {
  2199.     if ([$word($lstcnt $totest)]==[toolz.irc])
  2200.     {
  2201.       ^assign namepos $lstcnt
  2202.     }
  2203.     if ([$word($lstcnt $totest)]==[$tlzsize])
  2204.     {
  2205.       ^assign sizepos $lstcnt
  2206.     }
  2207.     @ lstcnt = lstcnt + 1
  2208.   }
  2209.   /echo [$toolz] Name = $namepos , Size = $sizepos
  2210. }
  2211. /on ^exec_error "lstest *"
  2212. {
  2213.   /echo [$toolz] Cannot find ToolZ.IRC. Make sure toolz.irc is in your
  2214.   /echo [$toolz] Current directory. (SetLS has failed)
  2215. }
  2216. /alias SetLS
  2217. {
  2218.   ^exec -name lstest ls -l toolz.irc
  2219. }
  2220. /alias Mdcc
  2221. {
  2222.   if ([$0]==[send])
  2223.   {
  2224.     if (namepos>0)
  2225.     {
  2226.       if ([$2])
  2227.       {
  2228.         ^assign dcsfiles $2-
  2229.         userhost $1 -CMD if ([$4]!=[<UNKNOWN>])
  2230.         {
  2231.           /exec -name DCS$0 ls -l $dcsfiles
  2232.         }
  2233.         {
  2234.           /echo [$toolz] Cannot find $0 on IRC.
  2235.         }
  2236.       }
  2237.       {
  2238.         /echo [$toolz] Use : /MDcc send <Nick> <Files>
  2239.       }
  2240.     }
  2241.     {
  2242.       /echo [$toolz] You must use /SetLS first!
  2243.     }
  2244.   }
  2245.   {
  2246.     /dcc $0-
  2247.   }
  2248. }
  2249. /on ^exec "DCS* *"
  2250. {
  2251.   ^assign dcsnick $0
  2252.   ^assign dcsnick $right(${@dcsnick-3} $0)
  2253.   ^assign dcspars $0-
  2254.   ^echo [$toolz] Sending $dcsnick $word($namepos $dcspars)
  2255.   ^dcc send $dcsnick $word($namepos $dcspars)
  2256. }
  2257. /on ^exec_error "DCS* *"
  2258. {
  2259.   ^echo [$toolz] $1-
  2260. }
  2261. alias j
  2262. {
  2263.   if ([$0[1]]==[#])
  2264.   {
  2265.     /join $0-
  2266.   }
  2267.   {
  2268.     /join #$0-
  2269.   }
  2270. }
  2271. alias l
  2272. {
  2273.   if ([$0])
  2274.   {
  2275.     /leave $0-
  2276.   }
  2277.   {
  2278.     /leave *
  2279.   }
  2280. }
  2281. alias wi
  2282. {
  2283.   /whois $0-
  2284. }
  2285. /on ^server_notice *
  2286. {
  2287.   if ([$4]==[Fake:])
  2288.   {
  2289.     if (rmatch($7 $mychannels()))
  2290.     {
  2291.       /echo *** FAKE '$5 - $7-' from $0
  2292.       if ([$dstog]==[On])
  2293.       {
  2294.         ^notice $5 *** FAKE '$5 - $7-' from $0
  2295.       }
  2296.     }
  2297.   }
  2298. }
  2299. /alias notfake
  2300. {
  2301.   if ([$0]==[on])
  2302.   {
  2303.     ^assign dstog On
  2304.     /echo [$toolz] Fake mode notify is now on.
  2305.   }
  2306.   {
  2307.     if ([$0]==[off])
  2308.     {
  2309.       ^assign dstog Off
  2310.       /echo [$toolz] Fake mode notify is now off.
  2311.     }
  2312.     {
  2313.       /echo [$toolz] Fake mode notify is $dstog
  2314.     }
  2315.   }
  2316. }
  2317. alias about
  2318. {
  2319.   ^echo ------------------------------------------------------------------------------
  2320.   ^echo                               EnCiNo's Toolbox.
  2321.   ^echo                              ~~~~~~~~~~~~~~~~~~
  2322.   ^echo Welcome to my toolbox :] /msg me if ya have any problems :]
  2323.   ^echo I am not going to explain everything this does.. i am sure you will find out..
  2324.   ^echo Enjoy it !
  2325.   ^echo Special thanx to Barney for the spell checkin :]
  2326.   ^echo More special thanx to stone for catching what Barney missed :D
  2327.   ^echo eddy there ya go mon.. your name is lights .. :P
  2328.   ^echo --------------------------------------------------------------------------<Y>-
  2329. }
  2330. alias Commands
  2331. {
  2332.   ^echo ------------------------------------------------------------------------------
  2333.   ^echo                        EnCiNo's toolbox List of commands.
  2334.   ^echo                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2335.   ^echo /M        (Nick) (Mess)   - Mesages <Nick> with <Mess>.
  2336.   ^echo /N        (Nick) (Mess)   - Notices <Nick> with <Mess>.
  2337.   ^echo /C        (Nick) (Mess)   - CTCP's <Nick> with <Mess>.
  2338.   ^echo /L        (Channels)      - Leave <Channels>.
  2339.   ^echo /L                        - Leave all channels.
  2340.   ^echo /J        (Channels)      - Join <Channels>.
  2341.   ^echo /Wi       (Nick)          - Whois <Nick>.
  2342.   ^echo /Op       (Nicks)         - Ops all <Nicks>.
  2343.   ^echo /DOp      (Nicks)         - Deops all <Nicks>.
  2344.   ^echo /ADAdd    (Nick)          - Adds <Nick> to your list.
  2345.   ^echo /ADStat   (On/Off)        - Turns off ctcp op and invite.
  2346.   ^echo /ADStat                   - Shows current status.
  2347.   ^echo /ADCheck  (Nick)          - Checks if <Nick> is on your list.
  2348.   ^echo /ADList                   - Shows all ppl on your list.
  2349.   ^echo /ADDcc    (On/Off)        - Turns auto DCC GET on/off.
  2350.   ^echo /ADDcc                    - Shows auto DCC status.
  2351.   ^echo /ADOver   (On/Off)        - Turns auto DCC GET overwrite on/off.
  2352.   ^echo /AdOver                   - Shows auto DCC GET overwrite status.
  2353.   ^echo /ADFile   (Filenames)     - Add file(s) to your file list.
  2354.   ^echo /ADFile                   - Shows current files in your list.
  2355.   ^echo /ADRFile  (Filename)      - Removes a file from your file list.
  2356.   ^echo /ADRFile  (Filter)        - Removes files with a filter from your list.
  2357.   ^echo /Rkick                    - Kicks 1 unopped person by random. (Or /RK)
  2358.   ^echo /LKick                    - Kicks all unopped ppl from the channel. (Or /LK)
  2359.   ^echo /BKick    (T) (N) (R)     - Kicks and bans <N> with reason <R> with ban <T>.
  2360.   ^echo /NKick    (Nick) (Reason) - Kicks someone. (Or /NK)
  2361.   ^echo /FKick    (Filt) (Reason) - Kicks all from current channel with (Filt)
  2362.   ^echo /KBKick   (Filt) (Reason) - Same as FKick, but does a ban with the filter.
  2363.   ^echo /Ban      (Type) (Nick)   - Bans the nick specified, with ban <Type>.
  2364.   ^echo /FBan     (Bans)          - Does all <Bans> in current channel.
  2365.   ^echo /DBan     (Nick)          - Un-Bans a specified nick.
  2366.   ^echo /CDBan                    - Clears bans.
  2367.   ^echo /MDProt   (On/Off)        - Turns megadeop protection on or off.
  2368.   ^echo /MDProt                   - Shows megadeop protection status.
  2369.   ^echo /MDLock   (Mode)          - Locks the mode with <Mode>.
  2370.   ^echo /MDLock   (None)          - Clears mode lock.
  2371.   ^echo /MDLock                   - Shows locked mode.
  2372.   ^echo /MDop                     - Megadeops current channel.
  2373.   ^echo /NoKey                    - Removes last set channel key.
  2374.   ^echo /ChanSt   (Channel)       - Gives info of the channel.
  2375.   ^echo /SetAway  (Reason)        - Sets you away, starts logging of msg's.
  2376.   ^echo /SetBack                  - Sets you back, and replays msg's.
  2377.   ^echo /ClearMes                 - Clears all recorded msg's.
  2378.   ^echo /Dirlm                    - Redirects last message to the current channel.
  2379.   ^echo /Dirlm    (Nick)          - Redirects last message to (Nick).
  2380.   ^echo /Sve                      - Saves all the auto stuff to file.
  2381.   ^echo /AdLNK    (Nick/Filter)   - Adds a nick/filter to the LNK list.
  2382.   ^echo /LNKList                  - Lists the Lame Nick Kick list.
  2383.   ^echo /AdBK     (Nick)          - Adds a nick to auto BKick list.
  2384.   ^echo /AdBKf    (Filter)        - Adds a filter to auto BKick list.
  2385.   ^echo /BKList                   - Lists the auto BKick list.
  2386.   ^echo /RemAutop (Nick)          - Removes a nick from your AutoOp List.
  2387.   ^echo /RemLNK   (Nick)          - Removes a nick from your LNK list.
  2388.   ^echo /RemBK    (Nick)          - Removes a nick from your Auto BKick list.
  2389.   ^echo /RemBKf   (Filter)        - Removes a filter from your Auto BKick list.
  2390.   ^echo /RemFo    (Nick)          - Removes a nick from your FindOp list.
  2391.   ^echo /AInv     (On/Off)        - Turns Auto Invite On or Off.
  2392.   ^echo /DoBans                   - Does all bans in your auto BKick list.
  2393.   ^echo /DoCow    (Dest) (1) (2)  - Sends a cow to the <Dest>.
  2394.   ^echo /ALTime   (HH|MM)         - Sets alarm time. HH:MM
  2395.   ^echo /Alarm    (On/Off)        - Turns the alarm on or off.
  2396.   ^echo /Alarm                    - Shows current alarm status and alarm time.
  2397.   ^echo /AdAutoJN (Channel)       - Adds <Channel> to your AJN list. (include #)
  2398.   ^echo /RemAJN   (Channel)       - Removes <Channel> from your AJN list.
  2399.   ^echo /AJNList                  - Shows all channels in your AJN list.
  2400.   ^echo /ClearAop                 - Clears Auto-Op list.
  2401.   ^echo /ClearABK                 - Clears Auto Ban Kick list.
  2402.   ^echo /ClearLNK                 - Clears LNK list.
  2403.   ^echo /ClearAJN                 - Clears Auto join list.
  2404.   ^echo /ClearFO                  - Clears FindOp list.
  2405.   ^echo /SM       (Message)       - Sets message for Mega Message.
  2406.   ^echo /MM       (Nicks)         - Sends Mega Message to all Nicks.
  2407.   ^echo /VMM                      - Shows current Mega Message.
  2408.   ^echo /Inv      (Nick) (Chanl)  - Invites <Nick> to <Chan>.
  2409.   ^echo /AddFO    (Nicks)         - Adds <Nicks> to your FindOp list.
  2410.   ^echo /FOList                   - Shows who is on your FindOp list.
  2411.   ^echo /FindOp   (Message)       - Sends <Message> to all on your FindOp list.
  2412.   ^echo /Aop2Fo                   - Copies all nicks on your Aop to yout FO list.
  2413.   ^echo /Wallop   (Message)       - Sends a Wallop to your current channel.
  2414.   ^echo /Killpass (Password)      - Sets your private kill password.
  2415.   ^echo /Status                   - Shows current ToolZ configuration.
  2416.   ^echo /Notaop                   - Adds all your Aop's to your notify list.
  2417.   ^echo /UpTime                   - Executes Uptime.
  2418.   ^echo /AutoAway (On/Off)        - Turns automatic setting away on or off.
  2419.   ^echo /AutoAway                 - Shows current automatic setaway status.
  2420.   ^echo /AutoTime (Time)          - Sets automatic setting away time.
  2421.   ^echo /AutoTime                 - Shows automatic setting away time.
  2422.   ^echo /SetLS                    - Checks your systems ls -l, needed for MDcc.
  2423.   ^echo /MDcc     (Nick) (Files)  - Dcc's <Nick>, <Files> (you can use wildcards).
  2424.   ^echo /Bandef   (N/E/S/H)       - Sets Default Ban
  2425.   ^echo /NotFake  (On/Off)        - Turns notify on dsynch on or off.
  2426.   ^ehco /NotFake                  - Shows current notify on dsynch .
  2427.   ^echo /Version                  - Shows current ToolZ Version.
  2428.   ^echo /About                    - Gives you an about text.
  2429.   ^echo --------------------------------------------------------------------------<Y>-
  2430. }
  2431. /load autostuf.yaz
  2432. ^eval mode $N +s
  2433.