diff options
Diffstat (limited to 'src/modules/m_spanningtree/whois.cpp')
-rw-r--r-- | src/modules/m_spanningtree/whois.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/whois.cpp b/src/modules/m_spanningtree/whois.cpp index 4ee485503..a67b57284 100644 --- a/src/modules/m_spanningtree/whois.cpp +++ b/src/modules/m_spanningtree/whois.cpp @@ -46,7 +46,7 @@ bool TreeSocket::Whois(const std::string &prefix, std::deque<std::string> ¶m char signon[MAXBUF]; char idle[MAXBUF]; snprintf(signon, MAXBUF, "%lu", (unsigned long)x->signon); - snprintf(idle, MAXBUF, "%lu", (unsigned long)abs((x->idle_lastmsg) - Instance->Time())); + snprintf(idle, MAXBUF, "%lu", (unsigned long)abs((long)((x->idle_lastmsg) - Instance->Time()))); std::deque<std::string> par; par.push_back(prefix); par.push_back(signon); @@ -87,3 +87,4 @@ bool TreeSocket::Whois(const std::string &prefix, std::deque<std::string> ¶m return true; } + |