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/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 8c3ad4969..15663a7d1 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -211,7 +211,7 @@ bool userrec::HasPermission(std::string &command) return true; // are they even an oper at all? - if (strchr(this->modes,'o')) + if (*this->oper) { for (int j =0; j < Config->ConfValueEnum("type",&Config->config_f); j++) { -- cgit v1.2.3