BlackTools.tcl 33 KB

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