mirror of
https://github.com/anope/anope.git
synced 2026-07-03 11:33:12 +02:00
Add NickAlias::GetVhostMask for getting the vident@vhost.
This commit is contained in:
@@ -109,6 +109,14 @@ const Anope::string &NickAlias::GetVhostHost() const
|
||||
return this->vhost_host;
|
||||
}
|
||||
|
||||
Anope::string NickAlias::GetVhostMask() const
|
||||
{
|
||||
if (this->GetVhostIdent().empty())
|
||||
return this->GetVhostHost();
|
||||
|
||||
return this->GetVhostIdent() + "@" + this->GetVhostHost();
|
||||
}
|
||||
|
||||
const Anope::string &NickAlias::GetVhostCreator() const
|
||||
{
|
||||
return this->vhost_creator;
|
||||
|
||||
Reference in New Issue
Block a user