From 4d96ae684a31c44ed7509df5a3763d8955e5f15d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 24 Jun 2007 08:15:57 +0000 Subject: 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 --- src/modules/m_spanningtree/treesocket1.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules') 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 &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) -- cgit v1.2.3