From feaf72ecb48470114fbe3f3058b5f4b9622b88a5 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 15 Feb 2006 19:23:01 +0000 Subject: Removed a whole lot of strchr's looking for mode +o where we can do if *user->oper git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3221 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_restrictmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_restrictmsg.cpp') diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp index f960c65c8..c51ea4850 100644 --- a/src/modules/m_restrictmsg.cpp +++ b/src/modules/m_restrictmsg.cpp @@ -48,7 +48,7 @@ class ModuleRestrictMsg : public Module if (target_type == TYPE_USER) { userrec* u = (userrec*)dest; - if ((strchr(u->modes,'o')) || (strchr(user->modes,'o'))) + if (*u->oper || *user->oper) { // message allowed if: // (1) the sender is opered -- cgit v1.2.3