moo.sdk.moderation

Staff sanction primitives.

The high rungs of the moderation ladder above @gag (self-defense) and @eject (room owner): a reversible suspend() (LambdaMOO’s “newt”, blocks login for a period) and a scarring ban() (blacklists the account’s durable identity so it cannot simply re-register). All key to the durable account (G), none can target staff, and each is recorded to the audit log (L). The login path consults account_login_blocked() and is_blacklisted().

Functions

account_login_blocked(account)

Return a reason string if this account may not log in, else None.

ban(account[, reason])

Ban an account and blacklist its durable identity / last site.

is_blacklisted(identity[, site])

True if a durable identity is banned (globally, or on the given site).

suspend(account[, duration, hours, reason])

Suspend an account, blocking login until the deadline elapses.

unsuspend(account[, reason])

Lift a suspension, returning the account to active.