Fix problem where two unrelated options are named identically, thanks for reminding me djGrrr

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7302 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-06-14 16:44:04 +00:00
parent d7ecb61986
commit 97a4acebb5
2 changed files with 3 additions and 2 deletions

View File

@ -439,7 +439,7 @@
# link to succeed. OpenSSL and GnuTLS are link- #
# compatible with each other. #
# #
# hidden - When using m_spanningtree.so for linking. you may #
# statshidden - When using m_spanningtree.so for linking. you may #
# set this to 'yes', and if you do, the IP address/ #
# hostname of this connection will NEVER be shown to #
# any opers on the network. In /STATS c its address #
@ -552,6 +552,7 @@
timeout="15"
transport="gnutls"
bind="1.2.3.4"
statshidden="no"
hidden="no"
sendpass="outgoing!password"
recvpass="incoming!password">

View File

@ -518,7 +518,7 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind)
L.SendPass = Conf->ReadValue("link", "sendpass", j);
L.RecvPass = Conf->ReadValue("link", "recvpass", j);
L.AutoConnect = Conf->ReadInteger("link", "autoconnect", j, true);
L.HiddenFromStats = Conf->ReadFlag("link", "hidden", j);
L.HiddenFromStats = Conf->ReadFlag("link", "statshidden", j);
L.Timeout = Conf->ReadInteger("link", "timeout", j, true);
L.Hook = Conf->ReadValue("link", "transport", j);
L.Bind = Conf->ReadValue("link", "bind", j);