* +------------------------------------+
*
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
{
Implementation eventlist[] = { I_OnUserConnect, I_OnGarbageCollect, I_OnRehash };
ServerInstance->Modules->Attach(eventlist, this, 3);
- OnRehash(NULL, "");
+ OnRehash(NULL);
}
virtual ~ModuleConnectBan()
return Version("$Id$", VF_VENDOR,API_VERSION);
}
- virtual void OnRehash(User* user, const std::string ¶meter)
+ virtual void OnRehash(User* user)
{
ConfigReader Conf(ServerInstance);
std::string duration;
int range = 32;
clonemap::iterator i;
- switch (u->GetProtocolFamily())
+ switch (u->client_sa.sa.sa_family)
{
- #ifdef SUPPORT_IP6LINKS
case AF_INET6:
- {
range = ipv6_cidr;
- }
break;
- #endif
case AF_INET:
- {
range = ipv4_cidr;
- }
break;
}