1
0
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:
Sadie Powell
2024-03-04 10:36:10 +00:00
parent d15ac93a8f
commit 1a8ae513b4
11 changed files with 30 additions and 69 deletions
+8
View File
@@ -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;