diff options
Diffstat (limited to 'src/modules/m_operchans.cpp')
| -rw-r--r-- | src/modules/m_operchans.cpp | 6 |
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); |
