X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspircd_io.cpp;h=aee8abe88d2ecc57c1814a71091a4f1aa50dadbd;hb=59b1a8955142935b02af6446005ab47fc7c3fc8c;hp=5995115f5302092778ff086adbaa3b7aa80c9d04;hpb=c1f1f982e8af92f633db150a26caa8b4d1fbdb01;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 5995115f5..aee8abe88 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -82,7 +82,12 @@ bool ServerConfig::AddIOHook(int port, Module* iomod) 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) @@ -197,8 +202,7 @@ void ServerConfig::Read(bool bail, userrec* user) /* 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; } @@ -259,7 +263,7 @@ void ServerConfig::Read(bool bail, userrec* user) Config->dns_timeout = atoi(DNT); if (!strchr(Config->ServerName,'.')) { - log(DEFAULT,"WARNING: '%s' is not a fully-qualified domain name. Changed to '%s\.'",Config->ServerName,Config->ServerName); + log(DEFAULT,"WARNING: '%s' is not a fully-qualified domain name. Changed to '%s%c'",Config->ServerName,Config->ServerName,'.'); strlcat(Config->ServerName,".",MAXBUF); } if (!Config->dns_timeout)