# SpamWatch Script

**Category:** mIRC_Addon
**Original Author:** IRCHelp.UniBG.Net+LHG Crew

## Description
This script is designed to monitor and detect spam or unwanted messages in IRC channels by checking for specific patterns in various types of user actions, such as private messages, public messages, notices, CTCPs, and quits.

## Key Features
- Monitors private messages (`/msg`) for forbidden words.
- Detects public messages (`pub`) containing certain phrases.
- Watches for notices sent to the bot.
- Checks CTCP replies for specific patterns.
- Tracks quit messages for spammy content.
- Inspects topic changes in channels.
- Identifies kick messages that may be spam.

## File Analysis
- **spamwatch.tcl** — Contains the main logic and event bindings for detecting and logging potential spam. It defines various procedures to handle different types of user actions, such as private messages, public messages, notices, CTCPs, quits, and topic changes.
- **charfilter** — A utility procedure that escapes special characters in strings.