diff options
author | Adam <Adam@anope.org> | 2013-04-22 05:21:38 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-26 16:59:29 -0500 |
commit | 8428bbb387d4b1195156f0ab5a676d17b69b8d5f (patch) | |
tree | 6a4391bc908dfc8bbf3f7879cbb464a36204520f /src/users.cpp | |
parent | 0f928805dbd793d7c0f10da1135ab79ad169472f (diff) |
Modularize DNS
The DNS modules are temporarily in commands/ so they're loaded automatically
Thanks to Attila for helping with much of this.
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/users.cpp b/src/users.cpp index 899ccecc6..d6363171c 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -108,26 +108,6 @@ std::string User::ProcessNoticeMasks(const char *sm) return output; } -void LocalUser::StartDNSLookup() -{ - try - { - bool cached = false; - UserResolver *res_reverse; - - QueryType resolvtype = this->client_sa.sa.sa_family == AF_INET6 ? DNS_QUERY_PTR6 : DNS_QUERY_PTR4; - res_reverse = new UserResolver(this, this->GetIPString(), resolvtype, cached); - - ServerInstance->AddResolver(res_reverse, cached); - } - catch (CoreException& e) - { - ServerInstance->Logs->Log("USERS", LOG_DEBUG,"Error in resolver: %s",e.GetReason()); - dns_done = true; - ServerInstance->stats->statsDnsBad++; - } -} - bool User::IsNoticeMaskSet(unsigned char sm) { if (!isalpha(sm)) @@ -220,7 +200,7 @@ LocalUser::LocalUser(int myfd, irc::sockets::sockaddrs* client, irc::sockets::so bytes_in(0), bytes_out(0), cmds_in(0), cmds_out(0), nping(0), CommandFloodPenalty(0), already_sent(0) { - exempt = quitting_sendq = dns_done = false; + exempt = quitting_sendq = false; idle_lastmsg = 0; ident = "unknown"; lastping = 0; |