From: danieldg Date: Sat, 7 Mar 2009 02:45:10 +0000 (+0000) Subject: Remove some unneeded debug messages on the common case of FJOIN X-Git-Tag: v2.0.23~2036 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=acb72fdf2d66d71e5b70ec5d3c3dcf9f8d8df655;p=user%2Fhenk%2Fcode%2Finspircd.git Remove some unneeded debug messages on the common case of FJOIN git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11183 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp index 55c72c474..96aeeb255 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -84,8 +84,9 @@ bool TreeSocket::ForceJoin(const std::string &source, std::deque &p { time_t ourTS = chan->age; - ServerInstance->SNO->WriteToSnoMask('d', "Merge FJOIN recieved for %s, ourTS: %lu, TS: %lu, difference: %lu", - chan->name.c_str(), (unsigned long)ourTS, (unsigned long)TS, (unsigned long)ourTS - (unsigned long)TS); + if (TS != ourTS) + ServerInstance->SNO->WriteToSnoMask('d', "Merge FJOIN recieved for %s, ourTS: %lu, TS: %lu, difference: %lu", + chan->name.c_str(), (unsigned long)ourTS, (unsigned long)TS, (unsigned long)(ourTS - TS)); /* If our TS is less than theirs, we dont accept their modes */ if (ourTS < TS) { @@ -110,7 +111,6 @@ bool TreeSocket::ForceJoin(const std::string &source, std::deque &p /* First up, apply their modes if they won the TS war */ if (apply_other_sides_modes) { - ServerInstance->SNO->WriteToSnoMask('d', "Applying remote modestring for %s", params[0].c_str()); unsigned int idx = 2; std::vector modelist;