]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/listensocket.cpp
Set the minimum length to 1 for most config items with a default.
[user/henk/code/inspircd.git] / src / listensocket.cpp
index d7217650e4ffba86e1cedb8a1805c7bcbe422e55..7e73c192650ef4fab930807bbacfb52a55001a5e 100644 (file)
@@ -207,7 +207,7 @@ void ListenSocket::OnEventHandlerRead()
        FIRST_MOD_RESULT(OnAcceptConnection, res, (incomingSockfd, this, &client, &server));
        if (res == MOD_RES_PASSTHRU)
        {
-               std::string type = bind_tag->getString("type", "clients");
+               const std::string type = bind_tag->getString("type", "clients", 1);
                if (stdalgo::string::equalsci(type, "clients"))
                {
                        ServerInstance->Users->AddUser(incomingSockfd, this, &client, &server);