MemoServ: add SET NOTIFY and SET LIMIT
All checks were successful
CI / check (push) Successful in 3m35s
All checks were successful
CI / check (push) Successful in 3m35s
SET NOTIFY {ON|OFF} controls whether you're told about new memos on login;
SET LIMIT <n>|NONE sets your mailbox cap (honoured on SEND, NONE = the
network default). New memo_notify/memo_limit account fields + one
MemoPrefsSet event.
This commit is contained in:
parent
125b8c7701
commit
2c282d036f
14 changed files with 152 additions and 8 deletions
|
|
@ -82,6 +82,12 @@ pub struct Account {
|
|||
// Accounts this user won't receive memos from (MemoServ IGNORE).
|
||||
#[serde(default)]
|
||||
pub memo_ignore: Vec<String>,
|
||||
// MemoServ SET NOTIFY: be told about new memos on login (default on).
|
||||
#[serde(default = "verified_default")]
|
||||
pub memo_notify: bool,
|
||||
// MemoServ SET LIMIT: mailbox cap (None = the network default).
|
||||
#[serde(default)]
|
||||
pub memo_limit: Option<u32>,
|
||||
// Personal greet a bot shows when this account joins a greet-enabled channel.
|
||||
#[serde(default)]
|
||||
pub greet: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue