mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Check for TS==0 in FJOIN
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7406 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
4d96ae684a
commit
ebce54dc1f
@ -806,6 +806,13 @@ bool TreeSocket::ForceJoin(const std::string &source, std::deque<std::string> &p
|
||||
params[2] = ":" + params[2];
|
||||
Utils->DoOneToAllButSender(source,"FJOIN",params,source);
|
||||
|
||||
if (!TS)
|
||||
{
|
||||
Instance->Log(DEFAULT,"*** BUG? *** TS of 0 sent to FJOIN. Are some services authors smoking craq, or is it 1970 again?. Dropped.");
|
||||
Instance->SNO->WriteToSnoMask('d', "WARNING: The server %s is sending FJOIN with a TS of zero. Total craq. Command was dropped.", source.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
/* If our TS is less than theirs, we dont accept their modes */
|
||||
if (ourTS < TS)
|
||||
apply_other_sides_modes = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user