summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-07-30 19:20:35 +0100
committerPeter Powell <petpow@saberuk.com>2017-08-13 16:34:12 +0100
commit0d2430cc5fb0d5d53d68fc09570cb7231c4e7c65 (patch)
tree7a3ae00f866947c7f7c75a8592864ca441b4f585 /src/modules
parent56fe5d6f2fb4097a9d83f1d4b60fc2ddc2051844 (diff)
Remove <alias:matchcase> and associated code.
This was never documented and seems pretty useless.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_alias.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index e99d9dab5..6d8e3a1c6 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -42,9 +42,6 @@ class Alias
/** Requires oper? */
bool OperOnly;
- /* is case sensitive params */
- bool CaseSensitive;
-
/* whether or not it may be executed via fantasy (default OFF) */
bool ChannelCommand;
@@ -94,7 +91,6 @@ class ModuleAlias : public Module
a.UserCommand = tag->getBool("usercommand", true);
a.OperOnly = tag->getBool("operonly");
a.format = tag->getString("format");
- a.CaseSensitive = tag->getBool("matchcase");
Aliases.insert(std::make_pair(a.AliasedCommand, a));
}
}
@@ -233,16 +229,8 @@ class ModuleAlias : public Module
/* Does it match the pattern? */
if (!a->format.empty())
{
- if (a->CaseSensitive)
- {
- if (!InspIRCd::Match(compare, a->format, rfc_case_sensitive_map))
- return 0;
- }
- else
- {
- if (!InspIRCd::Match(compare, a->format))
- return 0;
- }
+ if (!InspIRCd::Match(compare, a->format))
+ return 0;
}
if ((a->OperOnly) && (!user->IsOper()))