# Spamcalc.tcl

**Category:** mIRC_Addon
**Original Author:** MD87

## Description
This script calculates a spam score for IRC hostnames based on various criteria such as domain length, character balance, and word presence in predefined lists.

## Key Features
- Calculates a spam score using a complex algorithm.
- Bans users with high spam scores.
- Notifies channels about potential spammy hosts.
- Uses data files from `spamcalc/` for scoring calculations.

## File Analysis
- **spamcalc.tcl** — Contains the main script logic, including functions to calculate spam scores and handle user joins.
- **whitelist** — A list of hostnames that are exempted from spam checks.
- **blacklist** — Hostnames with associated spam scores that trigger bans if matched.
- **regexp** — Regular expressions for additional spam detection.
- **tld** — Top-level domains considered in the scoring algorithm.