# Record Script

**Category:** mIRC_Addon
**Original Author:** Unknown

## Description
This script is designed to periodically update a web page with user information from an IRC channel. It runs as a background task, updating the file `/home/user/public_html/users.htm` every 5 minutes.

## Key Features
- Updates the `users.htm` file on a schedule.
- Sorts users based on their creation time.
- Generates HTML content for displaying user details such as nicknames, global status, added date, and email addresses.
- Tracks different IRC channel access levels (owner, master, bot).
- Provides statistics about the number of owners, masters, total records, and bots.

## File Analysis
- **record.tcl** — A Tcl script that handles periodic updates to a web page with user information from an IRC channel. It includes procedures for sorting users, generating HTML content, and updating the file.
  - Implements `for_time` procedure to calculate time differences.
  - Uses `sort` procedure to sort users based on their creation date.
  - Contains logic to update the `/home/user/public_html/users.htm` file with user details.