summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 e8f5399e8..4aed944ee 100644
--- a/include/users.h
+++ b/include/users.h
@@ -916,7 +916,7 @@ inline FakeUser* IS_SERVER(User* u)
inline bool User::IsModeSet(const ModeHandler* mh) const
{
- return (modes[mh->GetId()]);
+ return ((mh->GetId() != ModeParser::MODEID_MAX) && (modes[mh->GetId()]));
}
inline bool User::IsModeSet(UserModeReference& moderef) const