]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a snotice in m_spanningtree incorrectly using an unsigned long.
authorPeter Powell <petpow@saberuk.com>
Sat, 3 Jan 2015 20:33:09 +0000 (20:33 +0000)
committerPeter Powell <petpow@saberuk.com>
Sat, 3 Jan 2015 20:33:09 +0000 (20:33 +0000)
This value can be negative so it should be a signed long not an
unsigned long.

src/modules/m_spanningtree/fjoin.cpp

index c8cd768aabd7be3e2b26ae253cec8ee38d82412c..47b39452268dfa8cc34923a98cfc36184726bb25 100644 (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)
                {