# Auto-Limit Script

**Category:** mIRC_Addon
**Original Author:** perpleXa

## Description
This script implements an auto-limit feature for IRC channels, allowing channel operators to automatically adjust the channel's limit based on the number of users in the channel.

## Key Features
- **bind pub**: Triggers when a user types "!autolimit" or "m autolimit".
- **bind join**: Triggers when a bot joins a channel.
- **proc autolimit:start**: Initializes the script and sets an auto-limit value for each channel if not already set.
- **proc autolimit:join**: Sets the initial limit for bots joining channels.
- **proc autolimit:pub**: Handles user commands to change or view the auto-limit settings.
- **proc autolimit**: Periodically checks and adjusts the channel limits based on the number of users.

## File Analysis
- **autolimit.tcl** — Contains all the procedures and bindings for the script, implementing the auto-limit feature described above.