From 8f06b469e49ff5b159859f7876c9240afc2ecf85 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 12 May 2007 20:41:24 +0000 Subject: 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 --- src/modules/m_denychans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_denychans.cpp') 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; } -- cgit v1.2.3