From 6bea8cf7e0b6016b99673105b6717cce47445870 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 31 Dec 2005 21:34:02 +0000 Subject: Added specific errors relating to invalid link tags (requested by Strike) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2719 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 396a6a262..e25da642d 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2350,7 +2350,22 @@ void ReadConfiguration(bool rebind) } else { - log(DEFAULT,"m_spanningtree: Invalid configuration for server '%s', ignored!",L.Name.c_str()); + if (L.RecvPass == "") + { + log(DEFAULT,"Invalid configuration for server '%s', recvpass not defined!",L.Name.c_str()); + } + else if (L.SendPass == "") + { + log(DEFAULT,"Invalid configuration for server '%s', sendpass not defined!",L.Name.c_str()); + } + else if (L.Name == "") + { + log(DEFAULT,"Invalid configuration, link tag without a name!"); + } + else if (!L.Port) + { + log(DEFAULT,"Invalid configuration for server '%s', no port specified!",L.Name.c_str()); + } } } delete Conf; -- cgit v1.2.3