diff options
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index faefe9041..51cc37f3f 100644 --- a/include/modules.h +++ b/include/modules.h @@ -101,14 +101,14 @@ struct ModResult { { return !res; } - bool check(bool def) + bool check(bool def) const { return (res == 1 || (res == 0 && def)); } /** * Merges two results, preferring ALLOW to DENY */ - const ModResult operator+(const ModResult& r) + ModResult operator+(const ModResult& r) const { if (res == r.res || r.res == 0) return *this; |