diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 20:41:24 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 20:41:24 +0000 |
commit | 8f06b469e49ff5b159859f7876c9240afc2ecf85 (patch) | |
tree | cf12c57a49c67a0c10b56f757e5a9907958706d9 /src | |
parent | 15daa40087058a698880e3af56a61c489e43df4d (diff) |
Change to IS_OPER, also modify to use short circuit evaluation (simple char check is quicker than ReadFlag no doubt)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6997 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_denychans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp index 3646690fb..db42ab43a 100644 --- a/src/modules/m_denychans.cpp +++ b/src/modules/m_denychans.cpp @@ -61,7 +61,7 @@ class ModuleDenyChannels : public Module { if (match(cname, Conf->ReadValue("badchan","name",j).c_str())) { - if ((Conf->ReadFlag("badchan","allowopers",j)) && *user->oper) + if (IS_OPER(user) && Conf->ReadFlag("badchan","allowopers",j)) { return 0; } |