ChanServ: add SET EMAIL channel contact address
Founders can attach a contact email to a channel, shown in INFO and cleared when set empty. Mirrors SET URL exactly; Local-scope channel metadata. Completes the channel DESC/URL/EMAIL trio.
This commit is contained in:
parent
7eb1adce5e
commit
01ea0fa95e
10 changed files with 52 additions and 5 deletions
|
|
@ -377,6 +377,9 @@ impl Store for Db {
|
|||
fn set_url(&mut self, channel: &str, url: &str) -> Result<(), ChanError> {
|
||||
Db::set_url(self, channel, url)
|
||||
}
|
||||
fn set_channel_email(&mut self, channel: &str, email: &str) -> Result<(), ChanError> {
|
||||
Db::set_channel_email(self, channel, email)
|
||||
}
|
||||
fn set_channel_setting(&mut self, channel: &str, setting: ChanSetting, on: bool) -> Result<(), ChanError> {
|
||||
Db::set_channel_setting(self, channel, setting, on)
|
||||
}
|
||||
|
|
@ -559,6 +562,7 @@ fn channel_view(c: &ChannelInfo) -> ChannelView {
|
|||
desc: c.desc.clone(),
|
||||
entrymsg: c.entrymsg.clone(),
|
||||
url: c.url.clone(),
|
||||
email: c.email.clone(),
|
||||
signkick: c.settings.signkick,
|
||||
private: c.settings.private,
|
||||
peace: c.settings.peace,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue