IOHookModule[port] = iomod;
return true;
}
- return false;
+ else
+ {
+ ModuleException err("Port already hooked by another module");
+ throw(err);
+ return false;
+ }
}
bool ServerConfig::DelIOHook(int port)
/* Check we dont have more than one of singular tags
*/
if (!CheckOnce("server",bail,user) || !CheckOnce("admin",bail,user) || !CheckOnce("files",bail,user)
- || !CheckOnce("power",bail,user) || !CheckOnce("options",bail,user)
- || !CheckOnce("dns",bail,user) || !CheckOnce("pid",bail,user))
+ || !CheckOnce("power",bail,user) || !CheckOnce("options",bail,user) || !CheckOnce("pid",bail,user))
{
return;
}
Config->dns_timeout = atoi(DNT);
if (!strchr(Config->ServerName,'.'))
{
- log(DEFAULT,"WARNING: <server:name> '%s' is not a fully-qualified domain name. Changed to '%s\.'",Config->ServerName,Config->ServerName);
+ log(DEFAULT,"WARNING: <server:name> '%s' is not a fully-qualified domain name. Changed to '%s%c'",Config->ServerName,Config->ServerName,'.');
strlcat(Config->ServerName,".",MAXBUF);
}
if (!Config->dns_timeout)