aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/fjoin.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2015-01-03 20:33:09 +0000
committerGravatar Peter Powell2015-01-03 20:33:09 +0000
commite27820683226e3832936bccd537b45bc04208f74 (patch)
treec47bcf2f2bfa096d825ea5af717efa240c6e3436 /src/modules/m_spanningtree/fjoin.cpp
parentm_httpd On module unload close all connections hooked by the module being unl... (diff)
downloadinspircd++-e27820683226e3832936bccd537b45bc04208f74.tar.gz
inspircd++-e27820683226e3832936bccd537b45bc04208f74.tar.bz2
inspircd++-e27820683226e3832936bccd537b45bc04208f74.zip
Fix a snotice in m_spanningtree incorrectly using an unsigned long.
This value can be negative so it should be a signed long not an unsigned long.
Diffstat (limited to 'src/modules/m_spanningtree/fjoin.cpp')
-rw-r--r--src/modules/m_spanningtree/fjoin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp
index c8cd768aa..47b394522 100644
--- a/src/modules/m_spanningtree/fjoin.cpp
+++ b/src/modules/m_spanningtree/fjoin.cpp
@@ -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)
{