# Topic Lock Script for Eggdrop

**Category:** Eggdrop_Script
**Original Author:** MikeC on QuakeNet

## Description
This script enforces a topic lock mechanism in Eggdrop IRC bots, ensuring that only privileged users can change the channel topic.

## Key Features
- **+T Custom Flag:** The script uses the +T custom flag to identify privileged users.
- **Topic Locking Mechanism:** When a non-privileged user attempts to change the topic, it reverts back to the previously saved one.
- **Saved Topics:** Topics are stored on disk and loaded upon bot startup.

## File Analysis
- **mc-topiclock.tcl** — Contains the core logic for managing topic locks, including binding events and handling topic changes. It also reads and writes topics from a file.