# Eggdrop 1.6.12 Core Bot Software

**Category:** Eggdrop_Bot
**Original Author:** Unknown

## Description
Eggdrop is a versatile IRC bot designed to automate tasks on IRC networks, such as managing channels, handling user commands, and providing services like file transfers.

## Key Features
- **Channel Management**: Joins channels, manages channel modes, and handles channel bans.
- **User Interaction**: Handles user commands, joins/part operations, and manages user permissions.
- **File Services**: Supports file serving (fserve) and XDCC services for file transfers.
- **Automated Actions**: Performs automated actions like kicking users, setting modes, and managing op status.

## File Analysis
- **acconfig.h** — Template configuration header.
- **mod.irc** — IRC module documentation.
- **action.fix.tcl** — Fixes for handling DCC CTCP messages and telnet session /me commands.
- **alltools.tcl** — Collection of tools and scripts used by the bot.
- **cmd_resolve.tcl** — Adds a command to resolve hostnames or IP addresses without blocking.
- **compat.tcl** — Compatibility script for mapping old Tcl functions to new ones.
- **getops.tcl** — Script for requesting and giving ops to other bots in a botnet.
- **klined.tcl** — Handles k-lines by removing the server from the bot's list when detected.
- **notes2.tcl** — Note-taking system for keeping track of user information.
- **ques5.tcl** — Web file indexing and retrieval script.
- **sentinel.tcl** — Flood protection system with BitchX CTCP simulation.
- **userinfo.tcl** — User information management and display.

- **bg.c** — Handles background process management.
- **bg.h** — Header for background process handling.
- **botcmd.c** — Handles commands from the botnet and userfile transfer commands.
- **botmsg.c** — Formats messages to be sent on the botnet and sends different messages to versioned bots.
- **botnet.c** — Manages the botnet, channel name associations, and pinging of bots.
- **chan.h** — Common header for channel-related functions.
- **chanprog.c** — Handles various programming tasks related to channels.
- **cmds.c** — Handles commands from users via DCC sockets.
- **cmdt.h** — Header for built-in command definitions.
- **dcc.c** — Manages activity and disconnects on DCC sockets.
- **dccutil.c** — Utilities for sending formatted text over various connections.
- **dns.c** — DNS resolve calls and events handling.
- **eggdrop.h** — Compile-time settings header.
- **flags.c** — Handles flag matching and conversion functions.
- **flags.h** — Header for flag-related functions.
- **language.c** — Language support code.
- **main.c** — Core event handling, signal handling, command line arguments, and context debugging.
- **main.h** — Main include file.
- **match.c** — Wildcard matching functions.
- **mem.c** — Memory allocation and deallocation.
- **misc.c** — Handles logging, queueing output, help system, and MOTD display.
- **misc_file.c** — File copy and move operations.
- **modules.c** — Support for modules in Eggdrop.
- **net.c** — Raw network I/O handling.
- **patch.h** — Header for adding patches to the version string.
- **proto.h** — Prototypes for functions used outside their own module.
- **rfc1459.c** — IRC protocol implementation based on RFC 1459.
- **stat.h** — File attributes.
- **tandem.h** — Header for tandem-related functions.
- **tcl.c** — Handles Tcl commands and initialization.
- **tcldcc.c** — Tcl stubs for DCC commands.
- **tclegg.h** — Stuff used by tcl.c and tclhash.c.
- **tclhash.c** — Handles bindings, procedure lookups, and Tcl command handling.
- **tclhash.h** — Header for tclhash-related functions.
- **tclmisc.c** — Tcl stubs for miscellaneous commands.
- **tcluser.c** — Tcl stubs for user-record-oriented commands.
- **userent.c** — User entry handling.
- **userrec.c** — Functions to find and change user records.
- **users.c** — Handles testing, enforcing ignores, adding/removing ignores, listing ignores, auto-linking bots, sending/receiving userfiles, and listing users.
- **users.h** — Structures and definitions used by users-related functions.