From: brain Date: Mon, 16 Jan 2006 15:03:21 +0000 (+0000) Subject: Fixed so that ONLY ports of type "" or type "clients" are bound by the core, *everyth... X-Git-Tag: v2.0.23~9268 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=7a0c2b695ca5fbb398c6293a53456edeb5af4a8d;p=user%2Fhenk%2Fcode%2Finspircd.git Fixed so that ONLY ports of type "" or type "clients" are bound by the core, *everything else* is passed over now, not just "servers" type. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2813 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 6ded65140..bb7691ce5 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1138,7 +1138,7 @@ int BindPorts() Config->ConfValue("bind","port",count,configToken,&Config->config_f); Config->ConfValue("bind","address",count,Addr,&Config->config_f); Config->ConfValue("bind","type",count,Type,&Config->config_f); - if (strcmp(Type,"servers")) + if ((!*Type) || (!strcmp(Type,"clients"))) { // modules handle server bind types now, // its not a typo in the strcmp.