# ho_mkill.pl

**Category:** Irssi_Script
**Original Author:** Garion

## Description
A script for the Irssi client that provides a /MKILL command to mass-kill clients in a channel based on specified criteria.

## Key Features
- Provides a /MKILL command.
- Allows specifying a reason for the kills.
- Can simulate kills without actually sending commands.
- Can exclude operators and non-operated users from being killed.
- Uses WHO requests to gather user information before performing mass-kills.
- Supports takeover mode, where all clients in a channel are killed.

## File Analysis
- **ho_mkill.pl** — The main script file that defines the /MKILL command functionality. It handles parsing arguments and executing the kill operation based on specified criteria.
- **ho_print_init_begin($SCRIPT_NAME)** — Initializes logging or printing functions for the script.
- **Irssi::command_bind('mkill', 'cmd_mkill')** — Binds the /MKILL command to the `cmd_mkill` function.
- **Irssi::settings_add_str('ho', 'ho_mkill_reason', 'Plonk!')** — Adds a setting for the default reason used in mass-kills.
- **event_who_line** and **event_who_end** — Handle WHO requests to gather user information before performing mass-kills.
- **perform_masskill** — Executes the actual mass-killing operation based on gathered data.
- **process_arguments** — Parses command-line arguments for the /MKILL command.