BlackTools.tcl 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299
  1. ###########################################################################
  2. # ® BLaCkShaDoW ProductionS ® #
  3. # #
  4. # PRESENTS #
  5. ###########################################################################
  6. #### # #### ##### # # ##### ##### ##### # #####
  7. # # # # # # # # # # # # # # #
  8. # # # # # # # # # # # # # # #
  9. #### # ###### # ## # # # # # # #####
  10. # # # # # # # # # # # # # # #
  11. # # # # # # # # # # # # # # #
  12. #### ##### # # ##### # # # ##### ##### ##### #####
  13. ###########################################################################
  14. # #
  15. # ##### # #
  16. # # # #
  17. # # # #
  18. # #### ###### #
  19. # # # #
  20. # # # #
  21. # ##### # # #
  22. # #
  23. # #
  24. # THE NEXT GENERATION TCL #
  25. # #
  26. # - #TCL-HELP @ UNDERNET - WwW.TclScripts.Net - #
  27. ###########################################################################
  28. #A Next Generation Channel Control Script that contains a lot of commands #
  29. #modules, and protections that make`s your life easy for you and for your #
  30. # Eggdrop. #
  31. ###########################################################################
  32. # #
  33. # Many thanks for without this script wouldn't got this far to: #
  34. # #
  35. # Time2Go@Oradea(#Tcl-Help Admin) #
  36. # #
  37. # Offcourse i thanks all the users who participate with ideas, #
  38. # opinions, which took the script to this version. #
  39. # #
  40. ###########################################################################
  41. #
  42. #Please specify the folder name that contains the BlackTools.tcl and the
  43. #BlackTools folder (Default "scripts")
  44. #
  45. set black(dirname) "scripts"
  46. #
  47. ############################################################################
  48. #Set here the config name of the Eggdrop where the "source scripts" lines
  49. #are written(Default "eggdrop.conf")
  50. #
  51. set black(configname) "eggdrop.conf"
  52. #
  53. ###########################################################################
  54. # Home Chan (Optional)
  55. #Here you set your eggdrop's homechan. If you modify here the eggdrop
  56. #will join homechan. If not leave it "#no_home_chan" or ""
  57. #
  58. set black(homechan) "#no_home_chan"
  59. #
  60. ###########################################################################
  61. # #
  62. # # #
  63. # # #
  64. # # #
  65. # ########## #
  66. # # # #
  67. # # # #
  68. # # # # #
  69. # #
  70. # HELP COMMAND #
  71. ###########################################################################
  72. #---------------------------- First Char ---------------------------------#
  73. #First Char ( "- . !" ) - ( "none" ) (for no char)
  74. set black(cmdchar) ". !"
  75. #-------------------------------------------------------------------------#
  76. #-------------------------- Default Language -----------------------------#
  77. #Default language of the script ( RO / EN )
  78. set black(default_lang) "RO"
  79. #-------------------------------------------------------------------------#
  80. #------------------------- Antiflood Protect -----------------------------#
  81. #Antiflood for .h & .man commands (commands:seconds)
  82. set black(antiflood:cmd) "3:5"
  83. #-------------------------------------------------------------------------#
  84. #---------------------------- Chanserv Name ------------------------------#
  85. #Chanserv Name
  86. set black(chanserv) "X"
  87. #-------------------------------------------------------------------------#
  88. #--------------------------- Chanserv Login ------------------------------#
  89. #Login On Connect ( 1 - ON ; 0 - OFF)
  90. set black(logonconect) "1"
  91. #-------------------------------------------------------------------------#
  92. #--------------------------- Chanserv User -------------------------------#
  93. set black(username) "username"
  94. #-------------------------------------------------------------------------#
  95. #--------------------------- Chanserv Pass -------------------------------#
  96. set black(password) "password"
  97. #-------------------------------------------------------------------------#
  98. #--------------------------- Login Command -------------------------------#
  99. set black(login) "PRIVMSG x@channels.undernet.org :login $black(username) $black(password)"
  100. #-------------------------------------------------------------------------#
  101. #----------------------------- Login Mode --------------------------------#
  102. set black(xmod) "+x"
  103. #-------------------------------------------------------------------------#
  104. #----------------------------- User Expire -------------------------------#
  105. #Expire Time (days)
  106. set black(user_expire_time) "60"
  107. #-------------------------------------------------------------------------#
  108. ################################# add #####################################
  109. #
  110. # add <level> <user> (level : manager,admin,senior,op voice,protect)
  111. #
  112. ###########################################################################
  113. #Default Hostname for - add <user> command -
  114. set black(hostadd) "*!*@%user%.users.undernet.org"
  115. ##########################################################################
  116. #
  117. # Antipub Protection
  118. #
  119. ##########################################################################
  120. #Ban-Time
  121. set black(antipubbantime) "2880"
  122. #Words
  123. set black(antipubword) {
  124. "*#*"
  125. "*www.*"
  126. "*http://*"
  127. "*.ro"
  128. "*.com"
  129. "*/server*"
  130. }
  131. #Except words
  132. set black(antipubexcept) {
  133. "http://mysite.co.jp"
  134. "#my_no_name_channel"
  135. }
  136. #Ban-Mode
  137. set black(antipubmode) "m"
  138. #Ban-mode Time (Seconds)
  139. set black(antipubsecunde) "5"
  140. #########################################################################
  141. #
  142. # AntiNotice Protection
  143. #
  144. #########################################################################
  145. #Ban-Time
  146. set black(antinoticebantime) "2880"
  147. #Ban-Mode
  148. set black(antinoticemode) "mr"
  149. #Ban-mode Time (Seconds)
  150. set black(antinoticesecunde) "7"
  151. #########################################################################
  152. #
  153. # AntiCTCP Protection
  154. #
  155. #########################################################################
  156. #Ban-Time
  157. set black(antictcpbantime) "2880"
  158. #Ban-Mode
  159. set black(antictcpmode) "mr"
  160. #Ban-mode Time (Seconds)
  161. set black(antictcpsecunde) "8"
  162. #########################################################################
  163. #
  164. # AntiBadWord Protection
  165. #
  166. #########################################################################
  167. #Ban-Time
  168. set black(antibadwordbantime) "360"
  169. #Words
  170. set black(antibadword) {
  171. "*pula*"
  172. "*pizda*"
  173. "*muie*"
  174. "*sugi"
  175. "mwie"
  176. "*pwla*"
  177. "*muisti*"
  178. "*fut*"
  179. "*fwt*"
  180. "tarfa"
  181. }
  182. ########################################################################
  183. #
  184. # AntiLongText Protection
  185. #
  186. ########################################################################
  187. #Char length
  188. set black(longchar) "400"
  189. #Ban-Time
  190. set black(longbantime) "30"
  191. #Ban-Mode
  192. set black(longmode) "mr"
  193. #Ban-mode Time (Seconds)
  194. set black(longtimemode) "10"
  195. #######################################################################
  196. #
  197. # AntiBAdQuitPart Protection
  198. #
  199. #
  200. #######################################################################
  201. #Ban-Time
  202. set black(badquitparttime) "60"
  203. #Words
  204. set black(badquitpartwords) {
  205. "*www.*"
  206. "*http://*"
  207. "*#*"
  208. }
  209. #Ban on COLORS (1 - ON ; 0 - OFF)
  210. set black(badquitpartcolour) "1"
  211. #######################################################################
  212. #
  213. # AntiJoinPart Protection
  214. #
  215. #
  216. #######################################################################
  217. #Ban-Time
  218. set black(joinpartbantime) "30"
  219. #Stay-Time
  220. set black(joinparttime) "2"
  221. #Ban-Mode
  222. set black(joinpartmode) "mr"
  223. #Ban-Mode Time (Seconds)
  224. set black(joinparttimemode) "10"
  225. #######################################################################
  226. #
  227. # AntiSpam Protection
  228. #
  229. #
  230. #######################################################################
  231. #Ban-Time
  232. set black(spamban) "2880"
  233. #Words
  234. set black(spamword) {
  235. "*#*"
  236. "*www.*"
  237. "*http://*"
  238. }
  239. #Cycle-Time
  240. set black(spamcycle) "30"
  241. #ON-JOIN Message ( 1 - ON ; 0 - OFF)
  242. set black(spamreq) "1"
  243. #Part Message
  244. set black(spammsgcycle) "Checking for spam.."
  245. #######################################################################
  246. #
  247. # AntiRepeat Protection
  248. #
  249. #######################################################################
  250. #Repeat Setting (number repeats:seconds)
  251. set black(repeats) "3:5"
  252. #Ban-Type (1 - KICK -> BAN ; 0 - BAN )
  253. set black(antirepeattype) "1"
  254. #Ban-Time
  255. set black(antirepeatbantime) "10"
  256. #######################################################################
  257. #
  258. # Anticolor Protection
  259. #
  260. #######################################################################
  261. #Ban-Type (1 - KICK -> BAN ; 0 - BAN )
  262. set black(anticolortype) "1"
  263. #Ban-Time
  264. set black(anticolorbantime) "10"
  265. #######################################################################
  266. #
  267. # AntiBold Protection
  268. #
  269. #######################################################################
  270. #Ban-Type (1 - KICK -> BAN ; 0 - BAN )
  271. set black(antiboldtype) "1"
  272. #Ban-Time
  273. set black(antiboldbantime) "10"
  274. #######################################################################
  275. #
  276. # AntiUnderline Protection
  277. #
  278. #######################################################################
  279. #Ban-Type (1 - KICK -> BAN ; 0 - BAN )
  280. set black(antiunderlinetype) "1"
  281. #Ban-Time
  282. set black(antiunderlinebantime) "10"
  283. #######################################################################
  284. #
  285. # AntiCaps Protection
  286. #
  287. #######################################################################
  288. #Ban-Type (1 - KICK -> BAN ; 0 - BAN )
  289. set black(anticapstype) "1"
  290. #Caps Char Length
  291. set black(anticapscount) "40"
  292. #Ban-Time
  293. set black(anticapsbantime) "10"
  294. #######################################################################
  295. #
  296. # BadFullName Protection
  297. #
  298. #######################################################################
  299. #Ban-Time
  300. set black(badfbantime) "60"
  301. #Words
  302. set black(badfwords) {
  303. "*www.*"
  304. "*#*"
  305. "*http://*"
  306. }
  307. #######################################################################
  308. #
  309. # BadNick Protection
  310. #
  311. #######################################################################
  312. #Ban-Time
  313. set black(badnickbantime) "60"
  314. #Words
  315. set black(badnickwords) {
  316. "*pula*"
  317. "*muie *"
  318. "pwla*"
  319. "pizda*"
  320. "laba*"
  321. }
  322. #######################################################################
  323. #
  324. # BadIdent Protection
  325. #
  326. #######################################################################
  327. #Ban-Time
  328. set black(badidentbantime) "60"
  329. #Words
  330. set black(badidentwords) {
  331. "*pula*"
  332. "*muie *"
  333. "pwla*"
  334. "pizda*"
  335. "laba*"
  336. }
  337. #######################################################################
  338. #
  339. # AntiJoinFlood Protection
  340. #
  341. #######################################################################
  342. #Join-Mode
  343. set black(modes) "mir"
  344. #Join-Mode Time (Seconds)
  345. set black(nomodetime) "15"
  346. #Op ALERT (1 - ON ; 0 - OFF)
  347. set black(fjoinhow) "1"
  348. #######################################################################
  349. #
  350. # AntiChanFlood Protection
  351. #
  352. #######################################################################
  353. #Ban-Type (1 - KICK -> BAN ; 0 - BAN )
  354. set black(antifloodchantype) "1"
  355. #Ban-Time
  356. set black(antifloodchanbantime) "10"
  357. #######################################################################
  358. #
  359. # Modules
  360. #
  361. #######################################################################
  362. #######################################################################
  363. #
  364. # Topic refresh
  365. #
  366. #######################################################################
  367. #Refresh Time
  368. set black(topic_time) "60"
  369. #Standard Topic
  370. set black(topics) "Reloading topic..."
  371. ########################################################################
  372. #
  373. # Count
  374. #
  375. # count <on> / <off> / <display> / <reset>
  376. #######################################################################
  377. #MSg Type ( 1 - NOTICE ; 0 - PRIVMSG )
  378. set black(counthow) "1"
  379. #######################################################################
  380. #
  381. # BadChan
  382. #
  383. # badchan | <on> | <off> | add | del | | list |
  384. #######################################################################
  385. #Ban-Time
  386. set black(badcbantime) "360"
  387. ########################################################################
  388. #
  389. # Anunt
  390. #
  391. # Anunt <on> | <off> | <add> | <list> | <del>
  392. #######################################################################
  393. #Anunt Time
  394. set black(anunttime) "30"
  395. #MSg Type ( 1 - ACTION ; 0 - PRIVMSG )
  396. set black(anunthow) "0"
  397. ########################################################################
  398. #
  399. # AutoBroadcast
  400. #
  401. # bt <on> | <off> | <add> | <list> | <del>
  402. #######################################################################
  403. #BRoadcast Time
  404. set black(bttime) "60"
  405. #MSg Type ( 1 - ACTION ; 0 - PRIVMSG )
  406. set black(bthow) "1"
  407. #######################################################################
  408. #
  409. # CloneScan
  410. #
  411. #######################################################################
  412. #Max Clones
  413. set black(maxclone) "3"
  414. #Ban-Time
  415. set black(clonebtime) "180"
  416. #######################################################################
  417. #
  418. # AntiBoTidle
  419. #
  420. #######################################################################
  421. #Random Object
  422. set black(noobject) "blacky:P"
  423. #Max Idle
  424. set black(noidlemax) "10"
  425. #######################################################################
  426. #
  427. # Seen
  428. #
  429. # seen <host> / <nick>
  430. #######################################################################
  431. #Flood-Protection (searches : seconds)
  432. set black(seenflood) "4:5"
  433. #Expire Time (days)
  434. set black(seen:expire:time) "60"
  435. ########################################################################
  436. #
  437. # Greet
  438. #
  439. # greet <on> | <off> | <add> | <list> | <set> | <del>
  440. #######################################################################
  441. #MSg Type ( 1 - NOTICE ; 0 - PRIVMSG )
  442. set black(howgreet) "1"
  443. ########################################################################
  444. #
  445. # Leave
  446. #
  447. # leave <on> | <off> | <add> | <list> | <del>
  448. #######################################################################
  449. #MSg Type ( 1 - NOTICE ; 0 - PRIVMSG )
  450. set black(howleave) "0"
  451. #Flood-Protection (joins:seconds)
  452. set black(leaveflood) "4:5"
  453. ########################################################################
  454. #
  455. # idle
  456. #
  457. #
  458. # idle <on> | <off> | voice <on>/<off> | op <on>/<off> | add <nick>
  459. #######################################################################
  460. #Idle Scan Time
  461. set black(idleinterval) "60"
  462. #Op max idle
  463. set black(idleopmax) "30"
  464. #Voice idle Max
  465. set black(idlevoicemax) "60"
  466. ########################################################################
  467. #
  468. # Gag
  469. #
  470. # gag <host>/<nick> [time] [reason] | gag <-list> | ungag <host>/<nick>
  471. ########################################################################
  472. #Gag Default Time
  473. set black(gag_time) "10"
  474. ########################################################################
  475. #
  476. # Private
  477. #
  478. #
  479. # private <on> | <off> | <add> <user> | <list> | del <nume>
  480. #######################################################################
  481. #Ban-Time
  482. set black(privatebantime) "10"
  483. ########################################################################
  484. #
  485. # Next
  486. #
  487. #
  488. # next | helped <nick> | noidle <nick> | skip <nick>
  489. #
  490. #######################################################################
  491. set black(nextbantime) "1"
  492. #######################################################################
  493. #
  494. # Commands
  495. #
  496. #######################################################################
  497. #######################################################################
  498. #
  499. # dr <nick> / <host>
  500. #
  501. #######################################################################
  502. #Ban-Time
  503. set black(drtime) "20160"
  504. #######################################################################
  505. #
  506. # bot <nick> / <host>
  507. #
  508. #######################################################################
  509. #Ban-Time
  510. set black(bottime) "10160"
  511. ########################################################################
  512. #
  513. # b <nick> / <host>
  514. #
  515. #######################################################################
  516. #Ban-Time
  517. set black(btime) "2880"
  518. #######################################################################
  519. #
  520. # n <nick>
  521. #
  522. #######################################################################
  523. #Ban-Time
  524. set black(ntime) "120"
  525. ######################################################################
  526. #
  527. # id <nick>
  528. #
  529. ######################################################################
  530. #Ban-Time
  531. set black(idtime) "120"
  532. ######################################################################
  533. #
  534. # spam <nick> / <host>
  535. #
  536. ######################################################################
  537. #Ban-Time
  538. set black(spamtime) "10080"
  539. ######################################################################
  540. #
  541. # k <nick> <reason>
  542. #
  543. ######################################################################
  544. #Access Except ( 1 - ON ; 0 - OFF )
  545. set black(kaccess) "1"
  546. #######################################################################
  547. #
  548. # bw <nick> / <host> ( bad word)
  549. #
  550. #######################################################################
  551. #Ban-Time
  552. set black(bwtime) "360"
  553. ########################################################################
  554. #
  555. # stick <nick> / <host> <timp> <reason>
  556. #
  557. ########################################################################
  558. #Ban-Time
  559. set black(dfstickbantime) "5040"
  560. ########################################################################
  561. #
  562. # d <nr> <host>/<nick> <time> <reason>
  563. #
  564. ########################################################################
  565. #Ban-Time (days)
  566. set black(dbtime) "1"
  567. ########################################################################
  568. #
  569. # l <seconds>
  570. #
  571. ########################################################################
  572. #Mode Type
  573. set black(lmode) "m"
  574. ########################################################################
  575. #
  576. # ul
  577. #
  578. ########################################################################
  579. #Mode Type
  580. set black(ulmodes) "mir"
  581. ########################################################################
  582. #
  583. #
  584. # This is the END !
  585. #
  586. #
  587. ########################################################################
  588. set black(exceptflags) "nm|HAagMOVSo"
  589. setudef flag antipub
  590. setudef flag antinotice
  591. setudef flag antictcp
  592. setudef flag antilongtext
  593. setudef flag antibadword
  594. setudef flag antijoinpart
  595. setudef flag antispam
  596. setudef flag antirepeat
  597. setudef flag badquitpart
  598. setudef flag anticolor
  599. setudef flag antibold
  600. setudef flag antiunderline
  601. setudef flag anticaps
  602. setudef flag badfullname
  603. setudef flag badnick
  604. setudef flag badident
  605. setudef flag antijoinflood
  606. setudef flag antichanflood
  607. setudef flag xtools
  608. setudef flag topicrefresh
  609. setudef flag count
  610. setudef flag antibadchan
  611. setudef flag anunt
  612. setudef flag limit
  613. setudef flag refresh
  614. setudef flag clonescan
  615. setudef flag seen
  616. setudef flag antidle
  617. setudef flag antividle
  618. setudef flag antididle
  619. setudef flag autoop
  620. setudef flag autovoice
  621. setudef flag leave
  622. setudef flag chanreport
  623. setudef flag topwords
  624. setudef flag xban
  625. setudef flag protectop
  626. setudef flag protectvoice
  627. setudef flag dontop
  628. setudef flag dontdeop
  629. setudef flag private
  630. setudef flag silent
  631. setudef flag showtime
  632. setudef flag showhandle
  633. setudef flag showcount
  634. setudef flag next
  635. setudef flag topiclock
  636. setudef int idlevoicemax
  637. setudef int idleopmax
  638. setudef int countnumber
  639. setudef int kickcount
  640. setudef int xbantime
  641. setudef int xbanlevel
  642. setudef int blacklimit
  643. setudef int clonescan-bantime
  644. setudef int clonescan-maxclone
  645. setudef str backchan
  646. setudef str next-backchan
  647. setudef str clonescan-action
  648. setudef str clonescan-banreason
  649. #Motive / Bantime
  650. #Protection
  651. setudef str antipub-reason
  652. setudef int antipub-bantime
  653. setudef str antinotice-reason
  654. setudef int antinotice-bantime
  655. setudef str antictcp-reason
  656. setudef int antictcp-bantime
  657. setudef str antibadword-reason
  658. setudef int antibadword-bantime
  659. setudef str antilongtext-reason
  660. setudef int antilongtext-bantime
  661. setudef str antibadquitpart-reason
  662. setudef int antibadquitpart-bantime
  663. setudef str antijoinpart-reason
  664. setudef int antijoinpart-bantime
  665. setudef str antispam-reason
  666. setudef int antispam-bantime
  667. setudef str antispam-message
  668. setudef str antirepeat-reason
  669. setudef int antirepeat-bantime
  670. setudef str anticolor-reason
  671. setudef int anticolor-bantime
  672. setudef str antibold-reason
  673. setudef int antibold-bantime
  674. setudef str antiunderline-reason
  675. setudef int antiunderline-bantime
  676. setudef str anticaps-reason
  677. setudef int anticaps-bantime
  678. setudef str badfullname-reason
  679. setudef int badfullname-bantime
  680. setudef str badnick-reason
  681. setudef int badnick-bantime
  682. setudef str badident-reason
  683. setudef int badident-bantime
  684. setudef str antichanflood-reason
  685. setudef int antichanflood-bantime
  686. setudef str joinflood
  687. setudef str chanflood
  688. setudef int private-bantime
  689. setudef str private-reason
  690. setudef int antilongtextmax
  691. setudef str antirepeat-setting
  692. setudef str k-reason
  693. setudef str check-message
  694. setudef str b-reason
  695. setudef int b-bantime
  696. setudef str black-reason
  697. setudef str stick-reason
  698. setudef int stick-bantime
  699. setudef str d-reason
  700. setudef int d-bantime
  701. #commands
  702. setudef str dr-reason
  703. setudef int dr-bantime
  704. setudef str n-reason
  705. setudef int n-bantime
  706. setudef int b-bantime
  707. setudef str id-reason
  708. setudef int id-bantime
  709. setudef str w-reason
  710. setudef str spam-reason
  711. setudef int spam-bantime
  712. setudef str bw-reason
  713. setudef int bw-bantime
  714. setudef int bot-bantime
  715. setudef str bot-reason
  716. setudef int gag-time
  717. setudef str gag-reason
  718. #module
  719. setudef str badchan-reason
  720. setudef int badchan-bantime
  721. setudef str topicset
  722. setudef str count-message
  723. setudef str count-date
  724. setudef str lang
  725. setudef str vprotect
  726. setudef str oprotect
  727. setudef str seen-method
  728. setudef str next-noidlereason
  729. setudef int next-bantime
  730. if {$black(logonconect) == "1"} {
  731. if {[info exists black(notlogged)]} {
  732. unset black(notlogged)
  733. }
  734. bind evnt - init-server loginpublic
  735. bind time - "* * * * *" timer:login:check
  736. }
  737. bind pubm - * topwordspublic
  738. bind pubm - * antipub:protect
  739. bind ctcp - ACTION antipub:protect:me
  740. bind notc - * antinotice:protect
  741. bind ctcp - * antictcp:protect
  742. bind pubm - * antibadword:protect
  743. bind ctcp - ACTION antibadword:protect:me
  744. bind pubm - * antilongtext:protect
  745. bind ctcp - ACTION antilongtext:protect:me
  746. bind part - * antipubpart:protect
  747. bind sign - * antipubsign:protect
  748. bind part - * anticolorpart:protect
  749. bind sign - * anticolorquit:protect
  750. bind part - * antijoinpart:protect
  751. bind join - * antispam:protect:msg
  752. bind msgm - * antispam:protect
  753. bind time - * antispam:protect:cycle
  754. bind time - "30 * * * *" clonescanner
  755. bind time - "* * * * *" limit:timer
  756. bind time - "30 00 * * *" seen:entry:delete
  757. bind time - "00 00 * * *" user:autoexpire
  758. bind pubm - * antirepeat:protect
  759. bind pubm - * antifloodchan:protect
  760. bind ctcp - version blackreply
  761. bind ctcp - ACTION antirepeat:protect:me
  762. bind ctcp - ACTION antifloodchan:protect:me
  763. bind pubm - * anticolor:protect
  764. bind ctcp - ACTION anticolor:protect:me
  765. bind pubm - * antibold:protect
  766. bind ctcp - ACTION antibold:protect:me
  767. bind pubm - * antiunderline:protect
  768. bind ctcp - ACTION antiunderline:protect:me
  769. bind pubm - * anticaps:protect
  770. bind ctcp - ACTION anticaps:protect:me
  771. bind join - * badfullname:protect:join
  772. bind join - * badnick:protect:join
  773. bind join - * badident:protect:join
  774. bind nick - * badnick:protect:change
  775. bind mode - "*+b*" protectpublic
  776. bind join - * joinflood:protect
  777. bind join - * rebanpublic
  778. bind need - * toolspublic
  779. bind need - * keyneed
  780. bind join - * countpublic:join
  781. bind join - * badchanpublic:join
  782. bind join - * seen:join
  783. bind part - * seen:part
  784. bind sign - * seen:sign
  785. bind kick - * seen:kick
  786. bind splt - * seen:split
  787. bind nick - * seen:changenick
  788. bind join - * greetpublic:join
  789. bind part - * leavepublic:part
  790. bind time - * idlewhoispublic
  791. bind evnt - init-server setaway
  792. bind join - * autovonjoin
  793. bind join - * autoponjoin
  794. bind join - * auto:join
  795. bind join - * private:module
  796. bind join - * timeban:module
  797. bind ctcr mn|MOSAV PING pingpublic
  798. bind ctcr - VERSION ctcpvers
  799. bind mode - *+o* dontoppublic
  800. bind mode - *-o* dontdeoppublic
  801. bind part - * badchan:part
  802. bind sign - * badchan:part
  803. bind splt - * badchan:split
  804. bind kick - * badchan:kick
  805. bind nick - * badchan:nickchange
  806. bind join - * flood:join:protection
  807. bind topc - * topic:change
  808. bind mode - *+o* topiclock:verify
  809. bind join - * topiclock:join
  810. bind mode - *-b* gag:reban
  811. bind time - "* * * * *" gag:autounban
  812. bind join - * black:next:join
  813. bind part - * black:next:part
  814. bind sign - * black:next:sign
  815. bind splt - * black:next:split
  816. bind kick - * black:next:kick
  817. bind mode - * black:next:mode
  818. bind nick - * black:next:chnick
  819. bind time - * black:next:checklist
  820. bind notc - "*AUTENTIFICARE REUSITA*" black:login:yes
  821. bind notc - "*AUTHENTICATION SUCCESSFUL*" black:login:yes
  822. bind notc - "*AUTENTIFICARE ESUATA*" black:login:no
  823. bind notc - "*AUTHENTICATION FAILED*" black:login:no
  824. bind notc - "*You are already authenticated*" black:login:yes
  825. bind notc - "*Esti deja autentificat*" black:login:yes
  826. bind notc - "*SYNTAX: LOGIN*" black:login:no
  827. bind notc - "*I don't know*" black:login:no
  828. if {[info exists numversion]} {
  829. if {$numversion >= "1061900"} {
  830. bind log - * check:badword:unban
  831. } else {
  832. bind time - "00 00 * * *" badword:autocheck
  833. }
  834. }
  835. bind pubm nm|MmvVNnoOSA * comand:pubme
  836. foreach black(char) $black(cmdchar) {
  837. if {[string equal -nocase "none" "$black(char)"]} {
  838. set black(char) ""
  839. }
  840. bind pub nm|MAS $black(char)clonescan scannerpublic
  841. bind pub nm|MASO $black(char)r refreshpublic
  842. bind pub nm|M $black(char)count countpublic
  843. bind pub nm|M $black(char)badchan badchanpublic
  844. bind pub nm|M $black(char)badword antibadword:command:public
  845. bind pub nm|M $black(char)anunt anuntpublic
  846. bind pub nm|M $black(char)limit limitpublic
  847. bind pub nm|M $black(char)topic topicpublic
  848. bind pub -|- $black(char)seen seenpublic
  849. bind pub nm|M $black(char)greet greetpublic
  850. bind pub nm|M $black(char)leave leavepublic
  851. bind pub nm|M $black(char)idle antidlepublic
  852. bind pub nm|OSMA $black(char)dr drpublic
  853. bind pub nm|OSMA $black(char)bot botpublic
  854. bind pub nm|OSMA $black(char)b bpublic
  855. bind pub nm|OSMA $black(char)n npublic
  856. bind pub nm|OSMA $black(char)id idpublic
  857. bind pub nm|SMA $black(char)black blackpublic
  858. bind pub nm|SMA $black(char)bl blackpublic
  859. bind pub nm|VOSMA $black(char)w wpublic
  860. bind pub nm|OSMA $black(char)spam spampublic
  861. bind pub nm|VOSMA $black(char)k kpublic
  862. bind pub nm|OSMA $black(char)bw bwpublic
  863. bind pub nm|OSMA $black(char)ub ubpublic
  864. bind pub nm|VOSMA $black(char)sb sbpublic
  865. bind pub nm|SMA $black(char)d dpublic
  866. bind pub nm|SMA $black(char)stick stickpublic
  867. bind pub nm|VOSMA $black(char)t tpublic
  868. bind pub nm|M $black(char)show showpublic
  869. bind pub nm|- $black(char)status statuspublic
  870. bind pub nm|- $black(char)channels channelspublic
  871. bind pub nm|- $black(char)chat chatpublic
  872. bind pub nm|- $black(char)uptime uptimepublic
  873. bind pub nm|VOSMA $black(char)i ipublic
  874. bind pub nm|VOSMA $black(char)addinfo addinfopublic
  875. bind pub nm|VOSMA $black(char)v vpublic
  876. bind pub nm|VOSMA $black(char)myset mysetpublic
  877. bind pub nm|OSMA $black(char)o opublic
  878. bind pub nm|VOSMA $black(char)l lpublic
  879. bind pub nm|VOSMA $black(char)ul ulpublic
  880. bind pub nm|SMA $black(char)say saypublic
  881. bind pub nm|SMA $black(char)act actpublic
  882. bind pub nm|- $black(char)broadcast broadcastpublic
  883. bind pub nm|OSMA $black(char)check checkpublic
  884. bind pub nm|VOSMA $black(char)version versionpublic
  885. bind pub nm|OSMA $black(char)cycle cyclepublic
  886. bind pub nm|- $black(char)away awaypublic
  887. bind pub nm|M $black(char)private privatepublic
  888. bind pub nm|OSMA $black(char)mode modepublic
  889. bind pub nm|M $black(char)set setpublic
  890. bind pub nm|- $black(char)silence silencepublic
  891. bind pub nm|- $black(char)msg msgpublic
  892. bind pub nm|MA $black(char)add publicadd
  893. bind pub nm|MA $black(char)adduser adduserpublic
  894. bind pub nm|MA $black(char)delacc delaccpublic
  895. bind pub nm|MA $black(char)del delpublic
  896. bind pub nm|- $black(char)ignore ignorepublic
  897. bind pub nm|- $black(char)botidle botidlepublic
  898. bind pub nm|MA $black(char)addhost addhostpublic
  899. bind pub nm|MA $black(char)delhost delhostpuplic
  900. bind pub nm|OSMA $black(char)banlist banlistpublic
  901. bind pub nm|M $black(char)purge purgepublic
  902. bind pub nm|M $black(char)chuser chuserpublic
  903. bind pub nm|MASOV $black(char)userlist publicuserlist
  904. bind pub nm|MASOV $black(char)info infopublic
  905. bind pub nm|MA $black(char)s spublic
  906. bind pub nm|MA $black(char)us uspublic
  907. bind pub nm|MAOSV $black(char)ping pings
  908. bind pub nm|MASOV $black(char)time timepublic
  909. bind pub nm|MAOSV $black(char)vers verspublic
  910. bind pub nm|MAOSV $black(char)whois whoispublic
  911. bind pub nm|MAOS $black(char)gag gagpublic
  912. bind pub nm|MAOS $black(char)ungag ungagpublic
  913. bind pub nm|M $black(char)reset resetpublic
  914. bind pub nm|M $black(char)clear clearpublic
  915. bind pub nm|VOSAM $black(char)activ activpublic
  916. bind pub nm|MASOV $black(char)h hpublic
  917. bind pub nm|MASO $black(char)cc ccpublic
  918. bind pub nm|MAOSV $black(char)top toppublic
  919. bind pub nm|M $black(char)secure securepublic
  920. bind pub nm|- $black(char)bt broadcastpublic:module
  921. bind pub nm|- $black(char)login publiclogin:Cmd
  922. bind pub n|- $black(char)tcl tclpublic
  923. bind pub nm|- $black(char)find findpublic
  924. bind pub nm|M $black(char)antipub antipub:module
  925. bind pub nm|MASO $black(char)next nextpublic:cmd
  926. bind pub nm|MASO $black(char)helped helpedpublic:cmd
  927. bind pub nm|MASO $black(char)noidle noidlepublic:cmd
  928. bind pub nm|MASO $black(char)skip skippublic:cmd
  929. bind pub nm|MASOV $black(char)man manpublic
  930. bind pub nm|MA $black(char)auto autopublic
  931. }
  932. bind msg nm|- addchan addchanpublic
  933. bind msg nm|- delchan delchanpublic
  934. bind msg nm|- suspend suspendpublic
  935. bind msg nm|- unsuspend unsuspendpublic
  936. bind msg nm|- nick nickpublic
  937. bind msg nm|- rehash rehashme
  938. bind msg nm|- restart restartme
  939. bind msg nm|- save saveme
  940. bind msg nm|- jump jumpme
  941. bind msg nm|- die dieme
  942. bind msg nm|OSAM op oppublic
  943. bind msg nm|OSAM deop deoppublic
  944. bind msg nm|OSVAM voice voicepublic
  945. bind msg nm|OSVAM devoice devoicepublic
  946. bind msg nm|OSVAM invite invitepublic
  947. #########################################################################
  948. # #
  949. # Dont try to modify if you dont know what are you doing :) #
  950. # #
  951. #########################################################################
  952. set black(name) "BlackToolS"
  953. set black(author) "BLaCkShaDoW"
  954. set black(vers) "2.4"
  955. set black(site) "WwW.TclScripts.Net"
  956. set black(commands_error) [catch {source $black(dirname)/BlackTools/BT.Commands.tcl} black(commands_error_stats)]
  957. set black(modules_error) [catch {source $black(dirname)/BlackTools/BT.Modules.tcl} black(modules_error_stats)]
  958. set black(protection_error) [catch {source $black(dirname)/BlackTools/BT.Protection.tcl} black(protection_error_stats)]
  959. set black(loader_error) [catch {source $black(dirname)/BlackTools/lang/loader.tcl} black(loader_error_stats)]
  960. if {$black(commands_error) == "1"} {
  961. die "\[BlackTools\] Error. Couldn't load the \"BlackTools Commands\".Reason: \"$black(commands_error_stats)\""
  962. }
  963. if {$black(protection_error) == "1"} {
  964. die "\[BlackTools\] Error. Couldn't load the \"BlackTools Protection\". Reason: \"$black(protection_error_stats)\""
  965. }
  966. if {$black(modules_error) == "1"} {
  967. die "\[BlackTools\] Error. Couldn't load the \"BlackTools Modules\". Reason: \"$black(modules_error_stats)\""
  968. }
  969. if {$black(loader_error) == "1"} {
  970. die "\[BlackTools\] Error. Couldn't load the \"BlackTools Language\". Reason: \"$black(loader_error_stats)\""
  971. }
  972. if {!($black(homechan) == "") && ![string equal -nocase $black(homechan) "#no_home_chan"]} {
  973. if {![validchan $black(homechan)]} {
  974. add:home:chan $black(homechan)
  975. }
  976. }
  977. putlog "$black(name) $black(vers) by $black(author) Loaded -> BLaCkShaDoW ProductionS ®"
  978. putlog "\[BLaCkToolS\] Languages Loaded :[join [string toupper $black(current_lang)] ","]"
  979. if {[info exists black(current_lang)]} {
  980. unset black(current_lang)
  981. }