Skip to content

Commit

Permalink
Implement feature in bug #395 reported by stealth, and tidy up a bit
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7790 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
braindigitalis committed Aug 21, 2007
1 parent 464f720 commit e641a0e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/modules/m_hostchange.cpp
Expand Up @@ -15,6 +15,7 @@
#include "users.h"
#include "channels.h"
#include "modules.h"
#include "wildcard.h"

/* $ModDesc: Provides masking of user hostnames in a different way to m_cloaking */

Expand Down Expand Up @@ -100,13 +101,13 @@ class ModuleHostChange : public Module
{
for (hostchanges_t::iterator i = hostchanges.begin(); i != hostchanges.end(); i++)
{
if (ServerInstance->MatchText(std::string(user->ident)+"@"+std::string(user->host),i->first))
if (((match(user->GetFullRealHost(),i->first.c_str(),true)) || (match(user->MakeHostIP(),i->first.c_str()))))
{
Host* h = (Host*)i->second;
Host* h = i->second;

if (!i->second->ports.empty())
if (!h->ports.empty())
{
irc::portparser portrange(i->second->ports, false);
irc::portparser portrange(h->ports, false);
long portno = -1;
bool foundany = false;

Expand Down

0 comments on commit e641a0e

Please sign in to comment.