diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-31 21:34:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-31 21:34:02 +0000 |
commit | 6bea8cf7e0b6016b99673105b6717cce47445870 (patch) | |
tree | e6faad9b93700c5dbc4623ff8f824feeebe71d27 /src | |
parent | 5d0595113274246e71779e9be0bfe9e57b18290b (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
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; |