summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-11 21:58:23 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-11 21:58:23 +0200
commit295b3e7ba15a228948358bd6f23591a9cb5bf5a8 (patch)
tree9dccb8775977852976cefb1edb3a0f477bfbbd2b /include
parent77e8e0bccac5cdd4f3cfcba9ea07e7b4fd80dec2 (diff)
Fix clang warning about IsOper()
Diffstat (limited to 'include')
-rw-r--r--include/users.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/users.h b/include/users.h
index 4d3013ae8..c5c936c13 100644
--- a/include/users.h
+++ b/include/users.h
@@ -421,7 +421,7 @@ class CoreExport User : public Extensible
* oper information can be obtained from User::oper
* @return True if the user is an oper, false otherwise
*/
- bool IsOper() const { return (oper != NULL); }
+ bool IsOper() const { return oper; }
/** Returns true if a notice mask is set
* @param sm A notice mask character to check