diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-28 18:46:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-28 18:46:09 +0000 |
commit | a1df1a79017469877faeb05243c8c9c9c0296a55 (patch) | |
tree | dfd9663bd32fbbf757ede2b67d23295659516c68 | |
parent | 243e510185ed16e01b347a1d1f35e08592ec5b4d (diff) |
Tweaks for unrealisms
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3383 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd_io.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 60673d203..a78666afe 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1224,9 +1224,16 @@ int BindPorts() Config->ConfValue("bind","type",count,Type,&Config->config_f); if ((!*Type) || (!strcmp(Type,"clients"))) { - // modules handle server bind types now, - // its not a typo in the strcmp. + // modules handle server bind types now Config->ports[clientportcount] = atoi(configToken); + + // If the client put bind "*", this is an unrealism. + // We don't actually support this as documented, but + // i got fed up of people trying it, so now it converts + // it to an empty string meaning the same 'bind to all'. + if (*Addr == '*') + *Addr = 0; + strlcpy(Config->addrs[clientportcount],Addr,256); clientportcount++; log(DEBUG,"InspIRCd: startup: read binding %s:%s [%s] from config",Addr,configToken, Type); |