Restore the real ident when a HostServ ident@host vhost is turned off or deleted
This commit is contained in:
parent
384f222a22
commit
af5896743d
4 changed files with 35 additions and 2 deletions
|
|
@ -249,6 +249,10 @@ impl Network {
|
|||
self.users.get(uid).map(|u| u.host.as_str())
|
||||
}
|
||||
|
||||
pub fn ident_of(&self, uid: &str) -> Option<&str> {
|
||||
self.users.get(uid).map(|u| u.ident.as_str())
|
||||
}
|
||||
|
||||
// A user's identity for extban / ban matching (nick, ident, hosts, ip, gecos,
|
||||
// account). `None` if we don't know the uid.
|
||||
pub fn ban_target<'a>(&'a self, uid: &str) -> Option<echo_api::BanTarget<'a>> {
|
||||
|
|
@ -577,6 +581,9 @@ impl NetView for Network {
|
|||
fn host_of(&self, uid: &str) -> Option<&str> {
|
||||
Network::host_of(self, uid)
|
||||
}
|
||||
fn ident_of(&self, uid: &str) -> Option<&str> {
|
||||
Network::ident_of(self, uid)
|
||||
}
|
||||
fn account_of(&self, uid: &str) -> Option<&str> {
|
||||
Network::account_of(self, uid)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue