# Stay On Channel Script

**Category:** Eggdrop_Bot
**Original Author:** Freeky@netcabo.pt

## Description
This script is designed to monitor a specific IRC channel for users associated with a particular site, ban them if found, and provide administrative commands for managing bans. It runs as an unattended bot on the monitored server.

## Key Features
- Monitors a specified IRC channel (`#FtpZ`) for users matching predefined accounts.
- Automatically bans users who are detected on the monitored channel.
- Provides commands to list, ban, and unban IP addresses or hosts from the `/etc/hosts.deny` file.
- Announces FTP statistics periodically.

## File Analysis
- **listwho.c** — Compiles into an executable that lists online users with specific details. Used by the script to check for banned users.
- **stay_on_channel.tcl** — Main script containing commands and bindings for monitoring, banning, and unban operations.
- **sitestats** — Bash script used to gather FTP server statistics and announce them on the monitored channel.
- **stay_on_channel.config** — Configuration file setting up various parameters such as channels, accounts, ban times, and announcement intervals.