diff options
| author | 2006-02-07 01:48:30 +0000 | |
|---|---|---|
| committer | 2006-02-07 01:48:30 +0000 | |
| commit | 927dc3b428cd942201791bc6f80f0a64f9b8b629 (patch) | |
| tree | df54f0b4c82afe96af13d88c74c3aea6081ce5df /src/modules/m_spanningtree.cpp | |
| parent | Added max and current local/global usercounts to /lusers same way as most oth... (diff) | |
| download | inspircd++-927dc3b428cd942201791bc6f80f0a64f9b8b629.tar.gz inspircd++-927dc3b428cd942201791bc6f80f0a64f9b8b629.tar.bz2 inspircd++-927dc3b428cd942201791bc6f80f0a64f9b8b629.zip | |
Fix signedness warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3121 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
| -rw-r--r-- | src/modules/m_spanningtree.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 03e543cd6..20c721419 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2509,8 +2509,8 @@ class ModuleSpanningTree : public Module std::vector<TreeSocket*> Bindings; int line; int NumServers; - int max_local; - int max_global; + unsigned int max_local; + unsigned int max_global; cmd_rconnect* command_rconnect; public: @@ -2574,7 +2574,7 @@ class ModuleSpanningTree : public Module void HandleLusers(char** parameters, int pcnt, userrec* user) { /* Only update these when someone wants to see them, more efficient */ - if (local_count() > max_local) + if ((unsigned int)local_count() > max_local) max_local = local_count(); if (clientlist.size() > max_global) max_global = clientlist.size(); |
