summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 20:31:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 20:31:47 +0000
commit512c5886658f9c29a56732e23e62ecc1776afd34 (patch)
tree5fe625eb0537452210391b968ec6aac3ad98a271
parent226cf304fd320c598765e6258bfad45e8bc648e9 (diff)
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
-rw-r--r--src/modules/m_override.cpp8
1 files changed, 4 insertions, 4 deletions
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 <type:override>
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;
}