# Eggdrop 1.0i Bot

**Category:** Eggdrop_Bot
**Original Author:** Robey Pointer (Unknown)

## Description
Eggdrop is an IRC bot written in C that provides comprehensive channel protection, user management, and automation features. It runs unattended and can be configured to handle various tasks such as banning, op management, and file transfers.

## Key Features
- **Channel Protection**: Manages bans and ignores for channels.
- **User Management**: Tracks and manages user records with access flags.
- **Flood Control**: Prevents flood attacks on the channel.
- **File Transfer Services (fserve)**: Handles file uploads and downloads.
- **XDCC Service**: Supports XDCC file sharing.
- **Tcl Scripting**: Extensive use of Tcl for command binding and execution.

## File Analysis
- **bf_tab.h** — Blowfish P-box and S-box tables used for encryption.
- **blowfish.c** — Implements the Blowfish encryption algorithm.
- **blowfish.h** — Header file defining constants and macros for Blowfish.
- **chan.c** — Handles channel manipulation, status reporting, user bans, and kicks.
- **chan.h** — Defines structures and constants related to channels.
- **chanprog.c** — Manages channel programs and Tcl scripts.
- **chanset.c** — Manages chansets and channel pointers.
- **cmds.c** — Handles commands from users via DCC connections.
- **cmdt.h** — Contains command definitions for Tcl scripting.
- **dcc.c** — Manages DCC socket activity, disconnects, and file transfers.
- **dccutil.c** — Provides utilities for DCC operations including formatted text sending.
- **eggdrop.conf** — Configuration file for Eggdrop settings.
- **eggdrop.h** — Compile-time settings and defines for the bot.
- **english.h** — Contains various strings used in the bot's output.
- **filedb.c** — Manages filesystem database files and remote requests.
- **fileq.c** — Handles file queue management, listing, sending, and cancellation.
- **files.c** — Manages all file system commands.
- **files.h** — Defines structures for file database entries.
- **gotdcc.c** — Processes incoming DCC CTCP messages and outgoing DCC files.
- **hash.c** — Handles procedure lookups and Tcl bindings.
- **hash.h** — Default bindings for Tcl hash tables.
- **main.c** — Main entry point of the bot, handles nick changes, flood detection, signal handling, and command line arguments.
- **match.c** — Implements wildcard matching functions.
- **mem.c** — Manages memory allocation and tracking.
- **misc.c** — Handles various utility functions including string operations and logging.
- **mode.c** — Manages channel modes and their changes.
- **msgcmds.c** — Handles commands entered via /MSG.
- **msgnotice.c** — Processes messages and notices from users or channels, handles simple CTCP requests.
- **net.c** — Manages all raw network I/O.
- **notes.c** — Reads and sends notes to users.
- **proto.h** — Prototypes for functions used outside their own modules.
- **tandcmd.c** — Handles commands that come across the botnet, userfile transfer, and update commands from sharebots.
- **tandem.c** — Manages tandem bots in a chain.
- **tclegg.h** — Contains command types and defines for Tcl commands.
- **tclchan.c** — Tcl stubs for channel-oriented commands.
- **tcldcc.c** — Tcl stubs for DCC commands.
- **tclmisc.c** — Tcl stubs for file system commands and other miscellaneous functions.
- **tcluser.c** — Tcl stubs for user record-oriented commands.
- **userrec.c** — Manages user records, flags, and channel-specific information.
- **users.c** — Handles bans, ignores, and user management.
- **dcc.save** — Script to save the entire user list when exiting.
- **compat.tcl** — Scripts to implement old '+friend' commands for compatibility.
- **console.tcl** — Saves and restores a user's console mode on exit.
- **gainops1.tcl** — Sends and handles requests for ops between tandem bots.
- **local.tcl** — Intercepts text from party-line users and sends it locally.
- **ntalk.irc** — Scripts to talk to an eggdrop bot in DCC chat.
- **ques3.tcl** — Creates HTML files showing channel information periodically.
- **samples.tcl** — Examples of extending Eggdrop with Tcl.
- **toolbox.tcl** — Useful procedures for use in Tcl scripts.
- **toolkit.tcl** — Additional Tcl procedures for script packages.
- **README** — Instructions on compiling and using the bot.
- **CONTENTS** — Table of contents for documentation files.
- **FEATURES** — List of features provided by Eggdrop.
- **Makefile** — Build instructions (currently not used).
- **UPDATES** — Changes in recent versions.
- **botchk** — Script to check if the bot is running and restart it if necessary.