From 512c5886658f9c29a56732e23e62ecc1776afd34 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 Oct 2006 20:31:47 +0000 Subject: Allow * in override to mean all tokens in 1.1 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5485 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_override.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 50b2cfce8..fe9df89b4 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -97,13 +97,13 @@ class ModuleOverride : public Module { // checks to see if the oper's type has override_t::iterator j = overrides.find(source->oper); - + if (j != overrides.end()) { - // its defined, return its value as a boolean for if the token is set - return (j->second.find(token, 0) != std::string::npos); + // its defined or * is set, return its value as a boolean for if the token is set + return ((j->second.find(token, 0) != std::string::npos) || (j->second.find("*", 0) != std::string::npos)); } - + // its not defined at all, count as false return false; } -- cgit v1.2.3