=== MxChat Moderation ===
Contributors: MxChat
Tags: chat, moderation, ban, block, security
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 2.1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

User moderation and ban management addon for MxChat plugin.

== Description ==

MxChat Moderation is an addon plugin for MxChat that provides powerful user moderation capabilities. It allows administrators to manage user access by implementing IP and email-based bans.

= Key Features =

* Ban users by email address or IP
* Modern sidebar-based admin interface matching MxChat core design
* One-click ban from Chat Transcripts page
* View all active bans in a searchable table
* Add notes to document ban reasons
* Dashboard with ban statistics
* Easy ban management with quick actions
* Seamless integration with MxChat

= Requirements =

* WordPress 5.0 or higher
* MxChat plugin installed and activated
* PHP 7.2 or higher

== Installation ==

1. Upload the `mx-chat-moderation` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to 'Chat Moderation' in your WordPress admin menu to manage bans

== Usage ==

= Adding a New Ban =

1. Navigate to Chat Moderation in your WordPress admin menu
2. Click "Add New Ban"
3. Enter either an email address or IP address
4. Select the ban type (email or IP)
5. Optionally add notes about the ban
6. Click "Add Ban" to save

= Managing Existing Bans =

* View all bans in the table list
* Use the search box to find specific bans
* Filter bans by type (email or IP)
* Edit ban notes by clicking the Edit button
* Remove bans using the Delete button

== Frequently Asked Questions ==

= Does this plugin work without MxChat? =

No, this is an addon plugin specifically designed to work with MxChat.

= Can I ban users by both email and IP? =

Yes, you can create separate bans for both email addresses and IP addresses.

= Are bans permanent? =

Yes, bans remain active until manually removed by an administrator.

= Can I add notes to document why someone was banned? =

Yes, you can add and edit notes for each ban to maintain records of why actions were taken.

== Screenshots ==

1. Ban management interface
2. Adding a new ban
3. Editing ban details
4. Ban list with search and filter options

== Changelog ==

= 2.1.2 =
* New: Modern sidebar-based admin UI matching MxChat core design
* New: Dashboard section with ban statistics (total, email, IP counts)
* New: One-click "Ban" button in Chat Transcripts page
* New: Auto-detects email vs IP address for instant banning
* New: Loading and "Banned" button states with toast notifications
* New: Mobile-responsive navigation menu
* Improved: Streamlined ban workflow without modal popups

= 1.0.6 =
* Bug fix: MU compatbility.

= 1.0.5 =
* Fixed Init issue

= 1.0.4 =
* Initial release
* Ban management functionality
* Email and IP-based bans
* Admin interface for ban management
* Search and filter capabilities

== Upgrade Notice ==

= 2.1.0 =
Major UI refresh with modern sidebar design and one-click ban from transcripts page.

= 1.0.6 =
- Bug fix: MU compatbility.

== Support ==

For support questions, please use the WordPress.org plugin support forums.

== Privacy Policy ==

This plugin stores the following data:
* Email addresses of banned users
* IP addresses of banned users
* Ban creation date and administrator who created the ban
* Notes associated with bans

All data is stored in your WordPress database and can be removed by deactivating and deleting the plugin.
