# QBAN 1.1a

**Category:** Eggdrop_Bot
**Original Author:** coven

## Description
QBAN is a script designed to manage channel bans on IRC networks by automatically banning users based on specific authentication names (authnames). It operates within an Eggdrop bot environment and provides commands for enabling, disabling, adding, and removing bans.

## Key Features
- **Commands:**
  - `.qban add <chan> <authname>`: Adds a new auth to the ban list.
  - `.qban del <chan> <authname>`: Removes an auth from the ban list.
  - `.qban status <channel>`: Shows the current status and bans for a channel.
  - `.qban enable <channel>`: Enables qban for a specific channel.
  - `.qban disable <channel>`: Disables qban for a specific channel.

- **Automatic Ban Enforcement:** The script automatically enforces bans based on authnames when users join channels where the script is enabled.

## File Analysis
- **LICENSE.txt** — Contains the GNU General Public License v2, granting permission to copy and distribute the software.
- **README** — Provides instructions for setting up and using the script within an Eggdrop bot configuration.
- **qban-1.1.tcl** — The main script file containing commands, binds, and procedures for managing channel bans.
  - **q:loadconf** — Loads configuration settings from a data file.
  - **q:saveconf** — Saves current configurations to the data file.
  - **q:bind** — Binds raw IRC events to specific procedures.
  - **q:unbind** — Unbinds previously bound raw IRC events.
  - **q:join** — Triggers when a user joins a channel and checks if qban is enabled for that channel.
  - **raw:q330** — Handles WHOIS responses to check for banned authnames.