diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 16:22:35 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 16:22:35 +0000 |
commit | e6fa614ad27cd68aa61605ca0884eee9c44384eb (patch) | |
tree | 359a35a935733f3cd3e9dffaadd7ce8f0054a8f8 /src/channels.cpp | |
parent | cf83d918227fd56a4cdb3d7392ba2b35aefd444d (diff) |
We've had an IS_OPER macro for a long time. About time we started using it, maybe? :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6990 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index e4b58a1a4..2793843c7 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -307,7 +307,7 @@ chanrec* chanrec::JoinUser(InspIRCd* Instance, userrec *user, const char* cn, bo { return chanrec::ForceChan(Instance, Ptr, user, privs); } - else if (*user->oper) + else if (IS_OPER(user)) { /* Oper allows extension up to the OperMaxchans value */ if (user->chans.size() < Instance->Config->OperMaxChans) |