BlackTools.tcl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509
  1. ###########################################################################
  2. # ® BLaCkShaDoW Production ® #
  3. # #
  4. # PRESENTS #
  5. ###########################################################################
  6. # ® #
  7. #### # #### ##### # # ##### ##### ##### # #####
  8. # # # # # # # # # # # # # # #
  9. # # # # # # # # # # # # # # #
  10. #### # ###### # ## # # # # # # #####
  11. # # # # # # # # # # # # # # #
  12. # # # # # # # # # # # # # # #
  13. #### ##### # # ##### # # # ##### ##### ##### #####
  14. # #
  15. # One TCL. One smart Eggdrop #
  16. ###########################################################################
  17. # #
  18. # ##### ###### #
  19. # # # #
  20. # # # #
  21. # #### ###### #
  22. # # # #
  23. # # # #
  24. # ##### # ##### #
  25. # #
  26. # #
  27. # THE NEXT GENERATION TCL #
  28. # #
  29. # - #TCL-HELP @ UNDERNET - #
  30. # #
  31. # Copyright 2008 - 2017 @ WwW.TCLScripts.NET #
  32. ###########################################################################
  33. # A Next Generation Channel Control Script that contains a lot of commands#
  34. # modules, and protections that make`s your life easy #
  35. # for you and for your Eggdrop. #
  36. # #
  37. ###########################################################################
  38. # NOTE: read the texts here carefully, i get many many emails asking #
  39. # questions which are acutally answered in the manual. #
  40. # dont expect me to answer these mails :P #
  41. # #
  42. ###########################################################################
  43. # Special thanks to: #
  44. # o Time2Go [ #Tcl-Help Admin ] #
  45. # o Florian [ florian@tclscripts.net ] #
  46. # #
  47. # without whom this script would not have gone so far #
  48. # #
  49. # Thanks also to all those people who found bugs and reported them and to #
  50. #all the users who joined #TCL-HELP and shared their ideas and suggestions#
  51. # #
  52. ###########################################################################
  53. #-------------------------- Scripts directory ----------------------------#
  54. ### ###
  55. set black(dirname) "scripts"
  56. ###########################################################################
  57. #------------------------ Home Chan (Optional) ---------------------------#
  58. # Here you set your eggdrop's homechan. If you modify here the eggdrop #
  59. #will join homechan. If not leave it "#no_home_chan" or "" (empty) #
  60. ### ###
  61. set black(homechan) "#no_home_chan"
  62. ###########################################################################
  63. #---------------------------- First Char ---------------------------------#
  64. ### ###
  65. #First Char (use "none" for no chars)
  66. set black(cmdchar) "! . `"
  67. ###########################################################################
  68. #-------------------------- Default Language -----------------------------#
  69. ### ###
  70. #Default language of the script ( RO / EN )
  71. set black(default_lang) "RO"
  72. #-------------------------- Default host ---------------------------------#
  73. ### ###
  74. #Default hostmask for BOSS OWNER
  75. #1 - *!*@host
  76. #2 - *!user@host
  77. #3 - nick!user@host
  78. #4 - nick!*@*
  79. #5 - *!user@*
  80. set black(hello:mask) "1"
  81. ###########################################################################
  82. #------------------------ Default Output Method --------------------------#
  83. ### ###
  84. #Default output method ( 0 - NOTICE ; 1 - CHAN ; 2 - MSG )
  85. set black(default_output) "0"
  86. ###########################################################################
  87. #------------------------ Default output colors --------------------------#
  88. ### ###
  89. #Colors list : bold, underline, red, blue, green, yellow, orange, cyan
  90. # grey, brown, purple, pink, black
  91. #You can choose 4 colors from the list (\002, \001, \005, \004)
  92. set black(default_colors) "red blue black red"
  93. ###########################################################################
  94. #-------------------------- Default Away ---------------------------------#
  95. ### ###
  96. #Default away (you can change'it online ofcourse.)
  97. set black(default_away) "I am using BlackTools 2.5 :-)"
  98. ###########################################################################
  99. #------------------------ Channel Remove Data ----=-----------------------#
  100. ### ###
  101. #Remove the BlackTools Data on channel remove ? (bans,excepts,greet..etc)
  102. # 1 - yes
  103. # 0 no
  104. set black(chanremove_all) "1"
  105. ###########################################################################
  106. #------------------------- Anti Command flood-----------------------------#
  107. ### ###
  108. #Antiflood for .h & .man commands (commands:seconds)
  109. set black(antiflood:cmd) "3:5"
  110. #-------------------------- Anti Message Flood ---------------------------#
  111. ### ###
  112. #Messages in seconds
  113. set black(msg:flood) "10:20"
  114. #Ignore time (minutes) (for those with access)
  115. set black(msg:flood:ignore_access) "1"
  116. #Ignore time (minutes) (for those who don't have access)
  117. set black(msg:flood:ignore_others) "30"
  118. #-------------------------- Anti Notice Flood ----------------------------#
  119. ### ###
  120. #Notices in seconds
  121. set black(notice:flood) "3:5"
  122. #Ignore time (minutes)
  123. set black(notice:flood:notc_time) "10"
  124. #--------------------------- Join Flood ----------------------------------#
  125. ### ###
  126. #JoinFlood Protect (commands:seconds)
  127. set black(joinflood:protect) "4:8"
  128. #------------------------- Internal MsgFlood -----------------------------#
  129. ### ###
  130. #Setup this variable to '0:0' to deactivate it. BlackTools has protection
  131. #against flooding
  132. set flood-msg "0:0"
  133. #---------------------------- Lines flood protect ------------------------#
  134. ### ###
  135. #Number of entries per page when using - list - ( using -next for next entries)
  136. set black(modul:nr:entries) "5"
  137. ###########################################################################
  138. #----------------------------- User Expire -------------------------------#
  139. ### ###
  140. #Expire Time (days)
  141. set black(user_expire_time) "180"
  142. ###########################################################################
  143. #------------------------ Anunt & BT Protection --------------------------#
  144. ### ###
  145. #How many entries to be shown until the modules stop because of the lack of activity
  146. #(joins,parts,ban,kick,quit,split,text)
  147. set black(entry:shown) "2"
  148. ###########################################################################
  149. ############################ Chanserv Login ###############################
  150. #---------------------------- Chanserv Name ------------------------------#
  151. set black(chanserv) "X"
  152. #---------------------------- Chanserv Host ------------------------------#
  153. set black(hostchanserv) "x@channels.undernet.org"
  154. #--------------------------- Chanserv User -------------------------------#
  155. set black(username) "Xusername"
  156. #--------------------------- Chanserv Pass -------------------------------#
  157. set black(password) "Xpassword"
  158. #----------------------------- Login Mode --------------------------------#
  159. set black(xmod) "+x"
  160. #------------------------ Chanserv Ignore Protect ------------------------#
  161. set black(chanserv:ignore_host) "*!*@undernet.org"
  162. #---------------------------- Chanserv Ban Time --------------------------#
  163. set black(chanserv:bantime) "1"
  164. #--------------------------- Chanserv Ban Level --------------------------#
  165. set black(chanserv:banlevel) "100"
  166. ###########################################################################
  167. #----------------------------- add command -------------------------------#
  168. #Default Hostname (%user% stands for the username added)
  169. set black(hostadd) "*!*@%user%.users.undernet.org"
  170. #--------------------------- adduser command -----------------------------#
  171. #This add command take's the hostname from the online <nick>
  172. #Default hostmask for adduser <nick>
  173. #1 - *!*@host
  174. #2 - *!user@host
  175. #3 - nick!user@host
  176. #4 - nick!*@*
  177. #5 - *!user@*
  178. set black(addusermask) "1"
  179. ##########################################################################
  180. #------------------------------ InviteBan -------------------------------#
  181. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  182. set black(inviteban:bantime) "3h"
  183. #Default banmask
  184. #1 - *!*@host
  185. #2 - *!user@host
  186. #3 - nick!user@host
  187. #4 - nick!*@*
  188. #5 - *!user@*
  189. set black(inviteban:banmask) "1"
  190. ##########################################################################
  191. #------------------------------- Antipub --------------------------------#
  192. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  193. set black(antipub:bantime) "2d"
  194. #Words
  195. set black(antipubword) {
  196. "*#*"
  197. "*www.*"
  198. "*http://*"
  199. "*.ro"
  200. "*.com"
  201. "*/server*"
  202. }
  203. #Except words
  204. set black(antipubexcept) {
  205. "http://tclscripts.net"
  206. "http://mysite.co.jp"
  207. "#my_no_name_channel"
  208. }
  209. #Ban-Mode
  210. set black(antipubmode) ""
  211. #Ban-mode Time (Seconds)
  212. set black(antipubsecunde) "3"
  213. #Action-Method
  214. #1 - warn
  215. #2 - kick
  216. #3 - ban
  217. #4 - warn -> kick
  218. #5 - warn -> kick -> ban
  219. #6 - kick -> ban
  220. #7 - warn -> ban
  221. set black(antipub:banmethod) "3"
  222. #Default banmask
  223. #1 - *!*@host
  224. #2 - *!user@host
  225. #3 - nick!user@host
  226. #4 - nick!*@*
  227. #5 - *!user@*
  228. set black(antipub:banmask) "1"
  229. #########################################################################
  230. #------------------------------- Badhost -------------------------------#
  231. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  232. set black(badhost:bantime) "3h"
  233. #Words
  234. set black(badhostword) {
  235. "*pula*"
  236. "*pizda*"
  237. "*muie*"
  238. "*sugi"
  239. "mwie"
  240. "*pwla*"
  241. "*muisti*"
  242. "*fut*"
  243. "*fwt*"
  244. }
  245. #Default banmask
  246. #1 - *!*@host
  247. #2 - *!user@host
  248. #3 - nick!user@host
  249. #4 - nick!*@*
  250. #5 - *!user@*
  251. set black(badhost:banmask) "1"
  252. #########################################################################
  253. #----------------------------- Antinotice ------------------------------#
  254. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  255. set black(antinotice:bantime) "2d"
  256. #Ban-Mode
  257. set black(antinoticemode) "mr"
  258. #Ban-mode Time (Seconds)
  259. set black(antinoticesecunde) "12"
  260. #Action-Method
  261. #1 - warn
  262. #2 - kick
  263. #3 - ban
  264. #4 - warn -> kick
  265. #5 - warn -> kick -> ban
  266. #6 - kick -> ban
  267. #7 - warn -> ban
  268. set black(antinotice:banmethod) "3"
  269. #Default banmask
  270. #1 - *!*@host
  271. #2 - *!user@host
  272. #3 - nick!user@host
  273. #4 - nick!*@*
  274. #5 - *!user@*
  275. set black(antinotice:banmask) "2"
  276. #########################################################################
  277. #------------------------------ AntiCTCP -------------------------------#
  278. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  279. set black(antictcp:bantime) "3d"
  280. #Ban-Mode
  281. set black(antictcpmode) "m"
  282. #Ban-mode Time (Seconds)
  283. set black(antictcpsecunde) "12"
  284. #Action-Method
  285. #1 - warn
  286. #2 - kick
  287. #3 - ban
  288. #4 - warn -> kick
  289. #5 - warn -> kick -> ban
  290. #6 - kick -> ban
  291. #7 - warn -> ban
  292. set black(antictcp:banmethod) "3"
  293. #Default banmask
  294. #1 - *!*@host
  295. #2 - *!user@host
  296. #3 - nick!user@host
  297. #4 - nick!*@*
  298. #5 - *!user@*
  299. set black(antictcp:banmask) "2"
  300. #########################################################################
  301. #----------------------------- AntiBadWord -----------------------------#
  302. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  303. set black(antibadword:bantime) "3h"
  304. #Words
  305. set black(antibadword) {
  306. "*pula*"
  307. "*pizda*"
  308. "*muie*"
  309. "*muist*"
  310. "*fut"
  311. "*fuck*"
  312. "*dick"
  313. "*suck*"
  314. "*whore*"
  315. "*wh0re*"
  316. "*futeo*"
  317. "*fute-o*"
  318. "*fututi*"
  319. "*blowjob*"
  320. "*anal*"
  321. "*dickest*"
  322. }
  323. #Action-Method
  324. #1 - warn
  325. #2 - kick
  326. #3 - ban
  327. #4 - warn -> kick
  328. #5 - warn -> kick -> ban
  329. #6 - kick -> ban
  330. #7 - warn -> ban
  331. set black(antibadword:banmethod) "6"
  332. #Default banmask
  333. #1 - *!*@host
  334. #2 - *!user@host
  335. #3 - nick!user@host
  336. #4 - nick!*@*
  337. #5 - *!user@*
  338. set black(antibadword:banmask) "1"
  339. ########################################################################
  340. #--------------------------- AntiLongText -----------------------------#
  341. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  342. set black(antilongtext:bantime) "30m"
  343. #Char length
  344. set black(longchar) "215"
  345. #Ban Mode
  346. set black(longmode) "m"
  347. #Mode Time (Seconds)
  348. set black(longtimemode) "10"
  349. #Action-Method
  350. #1 - warn
  351. #2 - kick
  352. #3 - ban
  353. #4 - warn -> kick
  354. #5 - warn -> kick -> ban
  355. #6 - kick -> ban
  356. #7 - warn -> ban
  357. set black(antilongtext:banmethod) "6"
  358. #Default banmask
  359. #1 - *!*@host
  360. #2 - *!user@host
  361. #3 - nick!user@host
  362. #4 - nick!*@*
  363. #5 - *!user@*
  364. set black(antilongtext:banmask) "1"
  365. #######################################################################
  366. #------------------------- AntiBadQuitPart ---------------------------#
  367. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  368. set black(antibadquitpart:bantime) "1h"
  369. #Words
  370. set black(badquitpartwords) {
  371. "*www.*"
  372. "*http://*"
  373. "*#*"
  374. }
  375. #Default banmask
  376. #1 - *!*@host
  377. #2 - *!user@host
  378. #3 - nick!user@host
  379. #4 - nick!*@*
  380. #5 - *!user@*
  381. set black(antibadquitpart:banmask) "1"
  382. #Except words
  383. set black(badquitpartexcept) {
  384. "www.yoursite.com"
  385. "#mychannel"
  386. }
  387. #######################################################################
  388. #--------------------------- AntiJoinPart ----------------------------#
  389. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  390. set black(antijoinpart:bantime) "30m"
  391. #Stay-Time
  392. set black(joinparttime) "5"
  393. #Ban-Mode
  394. set black(joinpartmode) "mr"
  395. #Ban-Mode Time (Seconds)
  396. set black(joinparttimemode) "10"
  397. #Action-Method
  398. #1 - warn
  399. #2 - kick
  400. #3 - ban
  401. #4 - warn -> kick
  402. #5 - warn -> kick -> ban
  403. #6 - kick -> ban
  404. #7 - warn -> ban
  405. set black(antijoinpart:banmethod) "3"
  406. #Default banmask
  407. #1 - *!*@host
  408. #2 - *!user@host
  409. #3 - nick!user@host
  410. #4 - nick!*@*
  411. #5 - *!user@*
  412. set black(antijoinpart:banmask) "1"
  413. #######################################################################
  414. #----------------------------- AntiSpam ------------------------------#
  415. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  416. set black(antispam:bantime) "6d"
  417. #Words
  418. set black(spamword) {
  419. "*#*"
  420. "*www.*"
  421. "*http://*"
  422. }
  423. #Default banmask
  424. #1 - *!*@host
  425. #2 - *!user@host
  426. #3 - nick!user@host
  427. #4 - nick!*@*
  428. #5 - *!user@*
  429. set black(antispam:banmask) "1"
  430. #Cycle-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  431. set black(spamcycle) "60m"
  432. #######################################################################
  433. #---------------------------- AntiRepeat -----------------------------#
  434. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  435. set black(antirepeat:bantime) "10m"
  436. #Repeat Setting (number repeats:seconds)
  437. set black(antirepeat:repeats) "3:5"
  438. #Action-Method
  439. #1 - warn
  440. #2 - kick
  441. #3 - ban
  442. #4 - warn -> kick
  443. #5 - warn -> kick -> ban
  444. #6 - kick -> ban
  445. #7 - warn -> ban
  446. set black(antirepeat:banmethod) "5"
  447. #Default banmask
  448. #1 - *!*@host
  449. #2 - *!user@host
  450. #3 - nick!user@host
  451. #4 - nick!*@*
  452. #5 - *!user@*
  453. set black(antirepeat:banmask) "1"
  454. #######################################################################
  455. #----------------------------- AntiColor -----------------------------#
  456. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  457. set black(anticolor:bantime) "10m"
  458. #Action-Method
  459. #1 - warn
  460. #2 - kick
  461. #3 - ban
  462. #4 - warn -> kick
  463. #5 - warn -> kick -> ban
  464. #6 - kick -> ban
  465. #7 - warn -> ban
  466. set black(anticolor:banmethod) "6"
  467. #Default banmask
  468. #1 - *!*@host
  469. #2 - *!user@host
  470. #3 - nick!user@host
  471. #4 - nick!*@*
  472. #5 - *!user@*
  473. set black(anticolor:banmask) "1"
  474. #######################################################################
  475. #----------------------------- AntiBold ------------------------------#
  476. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  477. set black(antibold:bantime) "10m"
  478. #Action-Method
  479. #1 - warn
  480. #2 - kick
  481. #3 - ban
  482. #4 - warn -> kick
  483. #5 - warn -> kick -> ban
  484. #6 - kick -> ban
  485. #7 - warn -> ban
  486. set black(antibold:banmethod) "6"
  487. #Default banmask
  488. #1 - *!*@host
  489. #2 - *!user@host
  490. #3 - nick!user@host
  491. #4 - nick!*@*
  492. #5 - *!user@*
  493. set black(antibold:banmask) "1"
  494. #######################################################################
  495. #-------------------------- AntiUnderline ----------------------------#
  496. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  497. set black(antiunderline:bantime) "10m"
  498. #Action-Method
  499. #1 - warn
  500. #2 - kick
  501. #3 - ban
  502. #4 - warn -> kick
  503. #5 - warn -> kick -> ban
  504. #6 - kick -> ban
  505. #7 - warn -> ban
  506. set black(antiunderline:banmethod) "6"
  507. #Default banmask
  508. #1 - *!*@host
  509. #2 - *!user@host
  510. #3 - nick!user@host
  511. #4 - nick!*@*
  512. #5 - *!user@*
  513. set black(antiunderline:banmask) "1"
  514. #######################################################################
  515. #----------------------------- AntiCaps ------------------------------#
  516. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  517. set black(anticaps:bantime) "10m"
  518. #Caps Char Length
  519. set black(anticapscount) "40"
  520. #Action-Method
  521. #1 - warn
  522. #2 - kick
  523. #3 - ban
  524. #4 - warn -> kick
  525. #5 - warn -> kick -> ban
  526. #6 - kick -> ban
  527. #7 - warn -> ban
  528. set black(anticaps:banmethod) "6"
  529. #Default banmask
  530. #1 - *!*@host
  531. #2 - *!user@host
  532. #3 - nick!user@host
  533. #4 - nick!*@*
  534. #5 - *!user@*
  535. set black(anticaps:banmask) "1"
  536. #######################################################################
  537. #--------------------------- BadRealname -----------------------------#
  538. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  539. set black(badrealname:bantime) "2h"
  540. #Words
  541. set black(badfwords) {
  542. "*www.*"
  543. "*#*"
  544. "*http://*"
  545. }
  546. #Default banmask
  547. #1 - *!*@host
  548. #2 - *!user@host
  549. #3 - nick!user@host
  550. #4 - nick!*@*
  551. #5 - *!user@*
  552. set black(badrealname:banmask) "1"
  553. #######################################################################
  554. #------------------------------ BadNick ------------------------------#
  555. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  556. set black(badnick:bantime) "1h"
  557. #badNicks
  558. set black(badnickwords) {
  559. "*pula*"
  560. "*muie *"
  561. "pwla*"
  562. "pizda*"
  563. "laba*"
  564. "*gay*"
  565. "*fuck*"
  566. "*bitch*"
  567. "*slut*"
  568. "*cock*"
  569. "*shit*"
  570. "*sex*"
  571. "*pussy*"
  572. "*whore*"
  573. "*suck*"
  574. "*dick*"
  575. "*porn*"
  576. "*p0rn*"
  577. "*horny*"
  578. "*cuplu*"
  579. "*lesbi*"
  580. "*orgasm*"
  581. "*naked*"
  582. "*slave*"
  583. "*boobs*"
  584. "*dick*"
  585. "penis*"
  586. "*blowjob*"
  587. "*shit*"
  588. }
  589. #Default banmask
  590. #1 - *!*@host
  591. #2 - *!user@host
  592. #3 - nick!user@host
  593. #4 - nick!*@*
  594. #5 - *!user@*
  595. set black(badnick:banmask) "4"
  596. #######################################################################
  597. #----------------------------- BadIdent ------------------------------#
  598. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  599. set black(badident:bantime) "1h"
  600. #Words
  601. set black(badidentwords) {
  602. "*pula*"
  603. "*muie*"
  604. "*pwla*"
  605. "*pizda*"
  606. "*cunt*"
  607. "*shit*"
  608. "*fuck*"
  609. "*horny*"
  610. "*pussy*"
  611. "*dick*"
  612. "penis*"
  613. "*bitch*"
  614. "*blowjob*"
  615. }
  616. #Default hostmask
  617. #5 - *!user@*
  618. #######################################################################
  619. #-------------------------- AntiJoinFlood ----------------------------#
  620. #Join-Mode
  621. set black(modes) "mir"
  622. #Join-Mode Time (Seconds)
  623. set black(nomodetime) "15"
  624. #Op ALERT (1 - ON ; 0 - OFF)
  625. set black(fjoinhow) "1"
  626. #######################################################################
  627. #-------------------------- AntiChanFlood ----------------------------#
  628. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  629. set black(antichanflood:bantime) "10m"
  630. #Number of repeats in seconds (X:Y)
  631. set black(antichanfloodrepeats) "4:5"
  632. #ChanMode
  633. set black(antichanflood:chanmode) "m"
  634. #ChanMode Time (seconds)
  635. set black(antichanflood:chanmodetime) "12"
  636. #Action-Method
  637. #1 - warn
  638. #2 - kick
  639. #3 - ban
  640. #4 - warn -> kick
  641. #5 - warn -> kick -> ban
  642. #6 - kick -> ban
  643. #7 - warn -> ban
  644. set black(antichanflood:banmethod) "6"
  645. #Default banmask
  646. #1 - *!*@host
  647. #2 - *!user@host
  648. #3 - nick!user@host
  649. #4 - nick!*@*
  650. #5 - *!user@*
  651. set black(antichanflood:banmask) "1"
  652. #######################################################################
  653. #---------------------------- NickFLood ------------------------------#
  654. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days))
  655. set black(nickflood:bantime) "10m"
  656. #Number of repeats in seconds (X:Y)
  657. set black(nickfloodrepeats) "3:120"
  658. #Action-Method
  659. #1 - warn
  660. #2 - kick
  661. #3 - ban
  662. #4 - warn -> kick
  663. #5 - warn -> kick -> ban
  664. #6 - kick -> ban
  665. #7 - warn -> ban
  666. set black(nickflood:banmethod) "7"
  667. #Default banmask
  668. #1 - *!*@host
  669. #2 - *!user@host
  670. #3 - nick!user@host
  671. #4 - nick!*@*
  672. #5 - *!user@*
  673. set black(nickflood:banmask) "1"
  674. ############################### Modules ###############################
  675. #------------------------------- Quote -------------------------------#
  676. #Default time for showing "Quote of the Day" (<x>m (minutes), <x>h (hours), <x>d (days))
  677. set black(quote:msgtime) "3h"
  678. #Output type (0 - MSG ; 1 - ACTION)
  679. set black(quote:outtype) "0"
  680. #------------------------------- VoiceMe -----------------------------#
  681. #Default time for voiceme message (<x>m (minutes), <x>h (hours), <x>d (days))
  682. set black(voiceme:msgtime) "15m"
  683. #------------------------------- TopWords ----------------------------#
  684. #Default host for user storage
  685. #1 - *!*@host
  686. #2 - *!user@host
  687. #3 - nick!user@host
  688. #4 - nick!*@*
  689. #5 - *!user@*
  690. set black(topwords:mask) "1"
  691. #######################################################################
  692. #------------------------------ GuestNick ----------------------------#
  693. #Default msg method (NOTICE, PRIVMSG, CHAN)
  694. set black(guestnick:msgmethod) "NOTICE"
  695. #######################################################################
  696. #------------------------------- limit -------------------------------#
  697. #Default limit
  698. set black(limit:default) "10"
  699. #######################################################################
  700. #---------------------------- VoiceOnMsg -----------------------------#
  701. #Number of lines to pe said to receive VOICE
  702. set black(voiceonmsg:linenum) "7"
  703. #Max chan-idle time (<x>m (minutes), <x>h (hours), <x>d (days)
  704. set black(voiceonmsg:idletime) "15m"
  705. #######################################################################
  706. #------------------------------ BadChan ------------------------------#
  707. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  708. set black(badchan:bantime) "6h"
  709. #Default badchannels
  710. set black(badcchannels) {
  711. "#badchan1"
  712. "#badchan2"
  713. "#badchan3"
  714. }
  715. #Default hostmask
  716. #1 - *!*@host
  717. #2 - *!user@host
  718. #3 - nick!user@host
  719. #4 - nick!*@*
  720. #5 - *!user@*
  721. set black(badchan:banmask) "1"
  722. #Badchan scantime (<x>m (minutes), <x>h (hours), <x>d (days)
  723. set black(badchan:scantime) "30m"
  724. #Act-Method ( 1 - message, after 30 sec ban; 2 - ban)
  725. set black(badcbanmethod) "2"
  726. ########################################################################
  727. #-------------------------------- Anunt -------------------------------#
  728. #Show-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  729. set black(anunttime) "45m"
  730. #MSg Type ( 1 - ACTION ; 0 - PRIVMSG )
  731. set black(anunthow) "0"
  732. ########################################################################
  733. #---------------------------- AutoBroadcast ---------------------------#
  734. #Show-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  735. set black(bttime) "90m"
  736. #MSg Type ( 1 - ACTION ; 0 - PRIVMSG )
  737. set black(bthow) "1"
  738. #######################################################################
  739. #----------------------------- CloneScan -----------------------------#
  740. #Scan Time (minutes), <x>h (hours), <x>d (days)
  741. set black(clonescantime) "45m"
  742. #Max Clones
  743. set black(maxclone) "3"
  744. #Default banmask
  745. #1 - *!*@host
  746. #Ban-Time (minutes), <x>h (hours), <x>d (days)
  747. set black(clonescan:bantime) "180m"
  748. #######################################################################
  749. #-------------------------------- Seen -------------------------------#
  750. #Flood-Protection (searches : seconds)
  751. set black(seenflood) "4:5"
  752. #Expire Time (days)
  753. set black(seen:expire:time) "60"
  754. ########################################################################
  755. #-------------------------------- Greet -------------------------------#
  756. #Default greet method (NOTICE ; PRIVMSG)
  757. set black(greet:method) "NOTICE"
  758. ########################################################################
  759. #-------------------------------- Leave -------------------------------#
  760. #Default greet method (NOTICE ; PRIVMSG)
  761. set black(leave:method) "PRIVMSG"
  762. #Flood-Protection (joins:seconds)
  763. set black(leaveflood) "4:5"
  764. ########################################################################
  765. #------------------------------ AntiIdle ------------------------------#
  766. #Idle Scan Time (minutes), <x>h (hours), <x>d (days)
  767. set black(idleinterval) "30m"
  768. #Op max idle
  769. set black(idleopmax) "60"
  770. #Voice idle Max
  771. set black(idlevoicemax) "30"
  772. ########################################################################
  773. #--------------------------------- Gag --------------------------------#
  774. #Gag-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  775. set black(gag:bantime) "10m"
  776. #Default hostmask for gag <host>/<nick>
  777. #1 - *!*@host
  778. #2 - *!user@host
  779. #3 - nick!user@host
  780. #4 - nick!*@*
  781. #5 - *!user@*
  782. set black(gag:banmask) "1"
  783. ########################################################################
  784. #------------------------------- Private ------------------------------#
  785. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  786. set black(private:bantime) "60m"
  787. #Default banmask
  788. #1 - *!*@host
  789. #2 - *!user@host
  790. #3 - nick!user@host
  791. #4 - nick!*@*
  792. #5 - *!user@*
  793. set black(private:banmask) "1"
  794. ########################################################################
  795. #--------------------------------- Next -------------------------------#
  796. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  797. set black(next:bantime) "1m"
  798. #Default banmask
  799. #1 - *!*@host
  800. #2 - *!user@host
  801. #3 - nick!user@host
  802. #4 - nick!*@*
  803. #5 - *!user@*
  804. set black(next:banmask) "1"
  805. ########################################################################
  806. #-------------------------------- Notes -------------------------------#
  807. #Expire time for Notes INBOX (days)
  808. set black(notes:expiretime) "30"
  809. ############################## Commands ################################
  810. #------------------------------- troll --------------------------------#
  811. #Default hostmask for troll <nick>
  812. #1 - *!*@host
  813. #2 - *!user@host
  814. #3 - nick!user@host
  815. #4 - nick!*@*
  816. #5 - *!user@*
  817. set black(troll:banmask) "1"
  818. ########################################################################
  819. #--------------------------------- dr ---------------------------------#
  820. #Default hostmask for dr <nick>/<host>
  821. #1 - *!*@host
  822. #2 - *!user@host
  823. #3 - nick!user@host
  824. #4 - nick!*@*
  825. #5 - *!user@*
  826. set black(dr:banmask) "1"
  827. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  828. set black(dr:bantime) "15d"
  829. ########################################################################
  830. #--------------------------------- vr ---------------------------------#
  831. #Default hostmask for vr <nick>/<host>
  832. #1 - *!*@host
  833. #2 - *!user@host
  834. #3 - nick!user@host
  835. #4 - nick!*@*
  836. #5 - *!user@*
  837. set black(vr:banmask) "1"
  838. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  839. set black(vr:bantime) "3d"
  840. ########################################################################
  841. #--------------------------------- bot --------------------------------#
  842. #Default hostmask for bot <nick>/<host>
  843. #1 - *!*@host
  844. #2 - *!user@host
  845. #3 - nick!user@host
  846. #4 - nick!*@*
  847. #5 - *!user@*
  848. set black(bot:banmask) "1"
  849. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  850. set black(bot:bantime) "7d"
  851. ########################################################################
  852. #--------------------------------- b ----------------------------------#
  853. #Default hostmask for b <host> -level <time> [reason]
  854. #1 - *!*@host
  855. #2 - *!user@host
  856. #3 - nick!user@host
  857. #4 - nick!*@*
  858. #5 - *!user@*
  859. set black(b:banmask) "1"
  860. #Default hostmask for b <host> <time> global [reason]
  861. #1 - *!*@host
  862. #2 - *!user@host
  863. #3 - nick!user@host
  864. #4 - nick!*@*
  865. #5 - *!user@*
  866. set black(b:gl:banmask) "1"
  867. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  868. set black(b:bantime) "2d"
  869. ########################################################################
  870. #--------------------------------- n ----------------------------------#
  871. #Default banmask
  872. #1 - *!*@host
  873. #2 - *!user@host
  874. #3 - nick!user@host
  875. #4 - nick!*@*
  876. #5 - *!user@*
  877. set black(n:banmask) "4"
  878. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  879. set black(n:bantime) "2h"
  880. ########################################################################
  881. #--------------------------------- id ---------------------------------#
  882. #Default hostmask for id <nick>
  883. #5 - *!user@*
  884. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  885. set black(id:bantime) "2h"
  886. ########################################################################
  887. #-------------------------------- spam --------------------------------#
  888. #Default hostmask for spam <nick>/<host>
  889. #1 - *!*@host
  890. #2 - *!user@host
  891. #3 - nick!user@host
  892. #4 - nick!*@*
  893. #5 - *!user@*
  894. set black(spam:banmask) "1"
  895. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  896. set black(spam:bantime) "7d"
  897. ########################################################################
  898. #--------------------------------- bw ---------------------------------#
  899. #Default hostmask for bw <nick>/<host>
  900. #1 - *!*@host
  901. #2 - *!user@host
  902. #3 - nick!user@host
  903. #4 - nick!*@*
  904. #5 - *!user@*
  905. set black(bw:banmask) "1"
  906. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  907. set black(bw:bantime) "1d"
  908. ########################################################################
  909. #-------------------------------- black -------------------------------#
  910. #Default hostmask for black <time> <nick>/<host>
  911. #1 - *!*@host
  912. #2 - *!user@host
  913. #3 - nick!user@host
  914. #4 - nick!*@*
  915. #5 - *!user@*
  916. set black(black:banmask) "1"
  917. ########################################################################
  918. #------------------------------- stick --------------------------------#
  919. #Default hostmask for stick <time> <nick>/<host>
  920. #1 - *!*@host
  921. #2 - *!user@host
  922. #3 - nick!user@host
  923. #4 - nick!*@*
  924. #5 - *!user@*
  925. set black(stick:banmask) "1"
  926. #Ban-Time (<x>m (minutes), <x>h (hours), <x>d (days)
  927. set black(stick:bantime) "2d"
  928. ########################################################################
  929. #------------------------------ banlist -------------------------------#
  930. ########################################################################
  931. #--------------------------------- k ----------------------------------#
  932. ########################################################################
  933. #--------------------------------- s ----------------------------------#
  934. #default suspend time (<x>m (minutes), <x>h (hours), <x>d (days))
  935. set black(s:default_time) "2d"
  936. ########################################################################
  937. #------------------------------ ignore --------------------------------#
  938. #default ignore time (<x>m (minutes), <x>h (hours), <x>d (days))
  939. set black(ignore:default_time) "6h"
  940. ############################# The End ##################################
  941. set black(name) "BlackToolS"
  942. set black(author) "BLaCkShaDoW"
  943. set black(vers) "2.5"
  944. set black(site) "WwW.TclScripts.Net"
  945. if {[info exists black(notlogged)]} {
  946. unset black(notlogged)
  947. }
  948. bind evnt - init-server loginpublic
  949. bind time - "* * * * *" timer:login:check
  950. set black(loader_error) [catch {source $black(dirname)/BlackTools/BT.Loader.tcl} black(loader_error_stats)]
  951. if {$black(loader_error) == "1"} {
  952. die "\[BT\] Error. Couldn't load the \"BT Loader\". Reason: \"$black(loader_error_stats)\""
  953. }
  954. #Add the first channel (HOME)
  955. proc add:home:chan {chan} {
  956. global black
  957. channel add $chan
  958. }
  959. if {!($black(homechan) == "") && ![string equal -nocase $black(homechan) "#no_home_chan"]} {
  960. if {![validchan $black(homechan)]} {
  961. add:home:chan $black(homechan)
  962. }
  963. }
  964. #Start login
  965. loginpublic:start
  966. putlog "$black(name) $black(vers) by $black(author) Loaded *** The Future is Here ***"
  967. putlog "\[BT\] Language files loaded: [join [string toupper $black(current_lang)] ", "]"
  968. #unset the languages
  969. if {[info exists black(current_lang)]} {
  970. unset black(current_lang)
  971. }