BlackTools.tcl 33 KB

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