summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-24 08:15:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-24 08:15:57 +0000
commit4d96ae684a31c44ed7509df5a3763d8955e5f15d (patch)
tree7e22817c6ccaa84c52032d082b2ac467505c7eab /src/modules/m_spanningtree
parent5c448873776d720e2042e07932e77bea8f92c40d (diff)
Drop fmode with TS of 0, just in case any craq smoking services devs get the idea that this is acceptable instead of actually supporting TS rules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7405 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index a23d55555..0aaa0bd3b 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -676,6 +676,13 @@ bool TreeSocket::ForceMode(const std::string &source, std::deque<std::string> &p
return true;
}
+ if (!TS)
+ {
+ Instance->Log(DEFAULT,"*** BUG? *** TS of 0 sent to FMODE. Are some services authors smoking craq, or is it 1970 again?. Dropped.");
+ Instance->SNO->WriteToSnoMask('d', "WARNING: The server %s is sending FMODE with a TS of zero. Total craq. Mode was dropped.", sourceserv.c_str());
+ return true;
+ }
+
/* TS is equal or less: Merge the mode changes into ours and pass on.
*/
if (TS <= ourTS)