Merge pull request #961 from SaberUK/insp20+fix-snotice

Fix a snotice in m_spanningtree incorrectly using an unsigned long.
This commit is contained in:
Attila Molnar 2015-01-21 19:04:10 +01:00
commit 383a68a38a

View File

@ -86,8 +86,8 @@ CmdResult CommandFJoin::Handle(const std::vector<std::string>& params, User *src
time_t ourTS = chan->age;
if (TS != ourTS)
ServerInstance->SNO->WriteToSnoMask('d', "Merge FJOIN received for %s, ourTS: %lu, TS: %lu, difference: %lu",
chan->name.c_str(), (unsigned long)ourTS, (unsigned long)TS, (unsigned long)(ourTS - TS));
ServerInstance->SNO->WriteToSnoMask('d', "Merge FJOIN received for %s, ourTS: %lu, TS: %lu, difference: %ld",
chan->name.c_str(), (unsigned long)ourTS, (unsigned long)TS, (long)(ourTS - TS));
/* If our TS is less than theirs, we dont accept their modes */
if (ourTS < TS)
{