diff options
| author | 2007-05-12 20:49:13 +0000 | |
|---|---|---|
| committer | 2007-05-12 20:49:13 +0000 | |
| commit | ec2106579c77a98dfdb209864a1e1b5ae1f07e7f (patch) | |
| tree | cd81cf8d2f9e2025dd3e3aa9b04a1b94b29d00cb /src/modules/m_restrictchans.cpp | |
| parent | WINNAH (diff) | |
| download | inspircd++-ec2106579c77a98dfdb209864a1e1b5ae1f07e7f.tar.gz inspircd++-ec2106579c77a98dfdb209864a1e1b5ae1f07e7f.tar.bz2 inspircd++-ec2106579c77a98dfdb209864a1e1b5ae1f07e7f.zip | |
The commit that should have been r7000: src/modules now uses IS_OPER instead of not so tidy char equivilant
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7001 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
| -rw-r--r-- | src/modules/m_restrictchans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index fc83d2e59..68fb73577 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -63,7 +63,7 @@ class ModuleRestrictChans : public Module { irc::string x = cname; // user is not an oper and its not in the allow list - if ((!*user->oper) && (allowchans.find(x) == allowchans.end())) + if ((!IS_OPER(user)) && (allowchans.find(x) == allowchans.end())) { // channel does not yet exist (record is null, about to be created IF we were to allow it) if (!chan) |
