From 0e1be06c0f852f2d81437190c0f51031578ce404 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 25 Feb 2006 11:01:48 +0000 Subject: Auto-lowercase all server names read in from 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 --- src/modules/m_spanningtree.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules/m_spanningtree.cpp') 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); -- cgit v1.2.3