]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/cap.h
Fix Windows build and most MSVC warnings
[user/henk/code/inspircd.git] / include / modules / cap.h
index e6f9340e83b0177669d3d398bd1acfd7a32c79e7..86a60c4459ad0e10f63c56253883eb3e982e009c 100644 (file)
@@ -197,7 +197,7 @@ namespace Cap
                        if (!IsRegistered())
                                return false;
                        Ext caps = extitem->get(user);
-                       return (caps & GetMask());
+                       return ((caps & GetMask()) != 0);
                }
 
                /** Turn the capability on/off for a user. If the cap is not registered this method has no effect.