diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-25 11:01:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-25 11:01:48 +0000 |
commit | 0e1be06c0f852f2d81437190c0f51031578ce404 (patch) | |
tree | 05f51f04940727ce83d11a34639c3237c50ec4d5 /src/modules/m_spanningtree.cpp | |
parent | 672d7d4ee88470611d4397b8773e70c2083339c2 (diff) |
Auto-lowercase all server names read in from <link> tags so that people cant get the case of servernames confused (passwords are STILL case sensitive)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3322 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 1374c88a2..7bcb35a62 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2721,7 +2721,11 @@ void ReadConfiguration(bool rebind) for (int j =0; j < Conf->Enumerate("link"); j++) { Link L; + char ServerN[MAXBUF]; L.Name = Conf->ReadValue("link","name",j); + strlcpy(ServerN,L.Name.c_str(),MAXBUF); + strlower(ServerN); + L.Name = ServerN; L.IPAddr = Conf->ReadValue("link","ipaddr",j); L.Port = Conf->ReadInteger("link","port",j,true); L.SendPass = Conf->ReadValue("link","sendpass",j); |