1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 22:33:13 +02:00

Trying to make things a little more const-safe, a work in progress but this is a bit better.

This commit is contained in:
Naram Qashat
2010-07-26 23:32:03 -04:00
parent 6e6b6b46aa
commit 57bb759305
34 changed files with 143 additions and 141 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ Exception *find_hostip_exception(const Anope::string &host, const Anope::string
for (std::vector<Exception *>::const_iterator it = exceptions.begin(), it_end = exceptions.end(); it != it_end; ++it)
{
Exception *e = *it;
if (Anope::Match(host, e->mask) || (ircd->nickip && !hostip.empty() && Anope::Match(hostip, e->mask)))
if (Anope::Match(host, e->mask) || (!hostip.empty() && Anope::Match(hostip, e->mask)))
return e;
}