X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Flistensocket.cpp;h=7e73c192650ef4fab930807bbacfb52a55001a5e;hb=6fcbfc072387752ec345d7589e986b9959f350fc;hp=d7217650e4ffba86e1cedb8a1805c7bcbe422e55;hpb=160649b7673392a9084be0492ac65a332d42cbd0;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/listensocket.cpp b/src/listensocket.cpp index d7217650e..7e73c1926 100644 --- a/src/listensocket.cpp +++ b/src/listensocket.cpp @@ -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);