# ho_easykline.pl

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

## Description
A simple script for the Irssi client that allows users to easily k-line (ban) specific user@host combinations by sending commands in a dedicated window.

## Key Features
- **K-lining automation**: Automatically k-lines user@host or *user@host based on settings.
- **User-friendly interface**: A command line within Irssi for enabling/disabling, setting k-line time and reason, and toggling between klining user@host or *@host.
- **Settings management**: Stores settings such as kline time, reason, and whether to kline user@host only.

## File Analysis
- **ho_easykline.pl** — The main script file that contains the logic for handling k-line commands and settings. It includes functions for enabling/disabling the script, setting k-line parameters, and executing k-lines based on input.
- **ho_print_active** — A function used to print messages in the active window.
- **set_kline_time**, **set_kline_reason**, **show_status** — Functions that handle setting specific k-line parameters.
- **kline_from_line** — The core function responsible for executing a k-line based on user input.