mirror of
https://github.com/anope/anope.git
synced 2026-07-01 18:06:39 +02:00
Rewrote cs_access to be more C++ish, changed NumberList to be more C++ish and fixed some compiler warnings on 64bit systems
This commit is contained in:
+1
-1
@@ -461,7 +461,7 @@ XLine *XLineManager::Check(User *u)
|
||||
if (!x->GetUser().empty() && !Anope::Match(u->GetIdent().c_str(), x->GetUser()))
|
||||
continue;
|
||||
|
||||
if (x->GetNick().empty() && x->GetUser().empty() || ((u->hostip && Anope::Match(u->hostip, x->GetHost())) || Anope::Match(u->host, x->GetHost()) || (!u->chost.empty() && Anope::Match(u->chost.c_str(), x->GetHost())) || (u->vhost && Anope::Match(u->vhost, x->GetHost()))))
|
||||
if (x->GetHost().empty() || ((u->hostip && Anope::Match(u->hostip, x->GetHost())) || Anope::Match(u->host, x->GetHost()) || (!u->chost.empty() && Anope::Match(u->chost.c_str(), x->GetHost())) || (u->vhost && Anope::Match(u->vhost, x->GetHost()))))
|
||||
{
|
||||
OnMatch(u, x);
|
||||
return x;
|
||||
|
||||
Reference in New Issue
Block a user