summaryrefslogtreecommitdiff
path: root/src/actions.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-09 23:43:11 -0400
committerAdam <Adam@anope.org>2010-09-09 23:43:11 -0400
commit46813ccb8c6ab572b8a9ff0a39afb1d92dc4482b (patch)
tree562da502a102230ce207bbe921fdc978ee71e20c /src/actions.cpp
parentfdd196e50b4616ac377bd0ee0ae5ce6c57b657ee (diff)
Added an asynchronous DNS system and m_dnsbl, which checks clients against DNS blacklists.
Rewrote internal handling of IPs, we now properly support users using IPv6. Fixed a few problems with the UnrealIRCd protocol module.
Diffstat (limited to 'src/actions.cpp')
-rw-r--r--src/actions.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/actions.cpp b/src/actions.cpp
index bdc5a041d..92ecca132 100644
--- a/src/actions.cpp
+++ b/src/actions.cpp
@@ -73,8 +73,7 @@ void kill_user(const Anope::string &source, const Anope::string &user, const Ano
*/
void common_unban(ChannelInfo *ci, const Anope::string &nick)
{
- Anope::string host;
- uint32 ip = 0;
+ //uint32 ip = 0;
User *u;
Entry *ban, *next;
@@ -87,27 +86,13 @@ void common_unban(ChannelInfo *ci, const Anope::string &nick)
if (!ci->c->bans || !ci->c->bans->count)
return;
- if (u->hostip.empty())
- {
- host = host_resolve(u->host);
- /* we store the just resolved hostname so we don't
- * need to do this again */
- if (!host.empty())
- u->hostip = host;
- }
- else
- host = u->hostip;
- /* Convert the host to an IP.. */
- if (!host.empty())
- ip = str_is_ip(host);
-
if (ircd->svsmode_unban)
ircdproto->SendBanDel(ci->c, nick);
else
for (ban = ci->c->bans->entries; ban; ban = next)
{
next = ban->next;
- if (entry_match(ban, u->nick, u->GetIdent(), u->host, ip) || entry_match(ban, u->nick, u->GetIdent(), u->GetDisplayedHost(), ip))
+ if (entry_match(ban, u->nick, u->GetIdent(), u->host, /*ip XXX */ 0) || entry_match(ban, u->nick, u->GetIdent(), u->GetDisplayedHost(), /*ip XXX */0))
ci->c->RemoveMode(NULL, CMODE_BAN, ban->mask);
}
}