aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_operchans.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-01-07 13:13:58 +0000
committerGravatar Sadie Powell2021-01-07 13:13:58 +0000
commit4f68d162cc55a8e35f9800a2ab85274876061861 (patch)
tree8de0f196ab3447614a6481f9b356e5dc2bae5a27 /src/modules/m_operchans.cpp
parentAdd a function for shrinking module names. (diff)
parentImplement support for more XML and IRC colour code escapes. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r--src/modules/m_operchans.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index 1cede6a61..ec3943638 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -53,11 +53,7 @@ class OperExtBan
if (!user->IsOper())
return false;
- // Check whether the oper's type matches the ban.
- if (InspIRCd::Match(user->oper->name, text))
- return true;
-
- // If the oper's type contains spaces recheck with underscores.
+ // Replace spaces with underscores as they're prohibited in mode parameters.
std::string opername(user->oper->name);
stdalgo::string::replace_all(opername, space, underscore);
return InspIRCd::Match(opername, text);