diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-26 23:32:03 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-26 23:32:03 -0400 |
| commit | 57bb7593059242652c57aae4391b45416dc7fa70 (patch) | |
| tree | 80b1b21308a0ce7e55bc5b8e278ed6cc95c07e8c /src/sessions.cpp | |
| parent | 6e6b6b46aabfb3e558f66bd0fdc528e93505cf76 (diff) | |
Trying to make things a little more const-safe, a work in progress but this is a bit better.
Diffstat (limited to 'src/sessions.cpp')
| -rw-r--r-- | src/sessions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sessions.cpp b/src/sessions.cpp index 9a1bc7a76..31deb02c3 100644 --- a/src/sessions.cpp +++ b/src/sessions.cpp @@ -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; } |
