1
0
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:
Adam
2010-05-27 19:41:16 -04:00
committed by Adam
parent 1394c96173
commit c43666e344
6 changed files with 376 additions and 328 deletions
+1 -1
View File
@@ -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;