summaryrefslogtreecommitdiff
path: root/src/modules/m_denychans.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 19:10:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 19:10:44 +0000
commitd715c1936e96ce05d9cc4eea2fd4afab3ad02539 (patch)
treea6dde7f6edd71037f94e0c1a56887297d526e5f8 /src/modules/m_denychans.cpp
parent6d1d225c5d9cf8d9bd508cd17028c86ec93cad09 (diff)
Now has no strchr() at all.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3220 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_denychans.cpp')
-rw-r--r--src/modules/m_denychans.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index 709a285a0..ba66d2294 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -59,15 +59,13 @@ class ModuleDenyChannels : public Module
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
{
- bool isoper = strchr(user->modes,'o') ? true : false;
-
for (int j =0; j < Conf->Enumerate("badchan"); j++)
{
irc::string cn = Conf->ReadValue("badchan","name",j).c_str();
irc::string thischan = cname;
if (thischan == cn)
{
- if ((Conf->ReadFlag("badchan","allowopers",j)) && isoper == true)
+ if ((Conf->ReadFlag("badchan","allowopers",j)) && *user->oper)
{
return 0;
}