1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 22:46:38 +02:00

Merge branch '2.0' into 2.1.

This commit is contained in:
Sadie Powell
2023-06-03 21:42:06 +01:00
27 changed files with 1541 additions and 1474 deletions
+8 -1
View File
@@ -467,9 +467,16 @@ bool User::IsServicesOper()
{
bool match = false;
Anope::string match_host = this->GetIdent() + "@" + this->host;
Anope::string match_ip = this->GetIdent() + "@" + this->ip.addr();
for (unsigned i = 0; i < this->nc->o->hosts.size(); ++i)
if (Anope::Match(match_host, this->nc->o->hosts[i]))
{
const Anope::string &userhost = this->nc->o->hosts[i];
if (Anope::Match(match_host, userhost) || Anope::Match(match_ip, userhost))
{
match = true;
break;
}
}
if (match == false)
return false;
}