diff options
author | Adam <Adam@anope.org> | 2012-10-01 01:56:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-01 01:56:57 -0400 |
commit | 89428a9d1032e3c2a6e397629a32862b3e58d708 (patch) | |
tree | d507904b3fa1cc084f0f3e688c839bcdd47f79d7 /src/nickserv.cpp | |
parent | b937d6310d9a7c0e2434200306b63d513cb2ae61 (diff) |
Cleanup of all of the protocol modules, rewrote message handling system to be a bit more C++ ish
Diffstat (limited to 'src/nickserv.cpp')
-rw-r--r-- | src/nickserv.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/nickserv.cpp b/src/nickserv.cpp index a66738c03..65126b987 100644 --- a/src/nickserv.cpp +++ b/src/nickserv.cpp @@ -52,13 +52,10 @@ bool is_on_access(const User *u, const NickCore *nc) return false; Anope::string buf = u->GetIdent() + "@" + u->host, buf2, buf3; - if (ircd->vhost) - { - if (!u->vhost.empty()) - buf2 = u->GetIdent() + "@" + u->vhost; - if (!u->GetCloakedHost().empty()) - buf3 = u->GetIdent() + "@" + u->GetCloakedHost(); - } + if (!u->vhost.empty()) + buf2 = u->GetIdent() + "@" + u->vhost; + if (!u->GetCloakedHost().empty()) + buf3 = u->GetIdent() + "@" + u->GetCloakedHost(); for (unsigned i = 0, end = nc->access.size(); i < end; ++i) { |