]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a minor warning in m_hideoper on some systems.
authorPeter Powell <petpow@saberuk.com>
Tue, 3 May 2016 17:47:15 +0000 (18:47 +0100)
committerPeter Powell <petpow@saberuk.com>
Tue, 3 May 2016 17:51:23 +0000 (18:51 +0100)
src/modules/m_hideoper.cpp

index 9d50bd2e5342b410ef4715c492c6ffdf50502944..32999d9f0b36025e6e25acf95b1f53caf09eccad 100644 (file)
@@ -94,7 +94,7 @@ class ModuleHideOper : public Module
                if (opercount)
                {
                        active = true;
-                       user->WriteNumeric(252, "%s %lu :operator(s) online", user->nick.c_str(),  opercount);
+                       user->WriteNumeric(252, "%s %lu :operator(s) online", user->nick.c_str(),  static_cast<unsigned long>(opercount));
                        active = false;
                }
                return MOD_RES_DENY;