operprefix + ojoin: server oper prefix (!/mode y, above owner) auto-granted to opers + OJOIN command
This commit is contained in:
parent
8ebb106f97
commit
1dd7f77ca8
106 changed files with 687 additions and 711 deletions
|
|
@ -1,10 +1,6 @@
|
|||
//! Flood protection — a module that rate-limits messages.
|
||||
//!
|
||||
//! It keeps each user's recent message times in that user's typed
|
||||
//! [`crate::extensible::Extensible`] slot. Because the state is *owned by the
|
||||
//! `User`*, it vanishes the moment the user quits — no cleanup callback, no cull
|
||||
//! list, no chance of a dangling reference (the C++ InspIRCd failure mode this
|
||||
//! design rules out at compile time).
|
||||
//! Per-user message-rate limit (`flood_messages` within `flood_seconds`); opers
|
||||
//! exempt. Recent message times live in the user's typed
|
||||
//! [`crate::extensible::Extensible`] slot, so the state is freed when the user quits.
|
||||
|
||||
use crate::module::{ModResult, Module};
|
||||
use crate::server::{now, Server};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue