summaryrefslogtreecommitdiff
path: root/src/modules/m_override.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_override.cpp')
-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;
}