X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_alias.cpp;h=8c04a4dadd3fe0742ce67116f02f4abfd65b3f7f;hb=77954a2e31213ce355e9e319229c767dfbd698a4;hp=9ddd3a3cc1f24e92b1715b8547a8e874c26abc9e;hpb=517a26252a091eaee0149458a86fc43731bce618;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 9ddd3a3cc..8c04a4dad 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -84,7 +84,7 @@ class ModuleAlias : public Module virtual Version GetVersion() { - return Version(1,2,0,1,VF_VENDOR,API_VERSION); + return Version("$Id$", VF_VENDOR,API_VERSION); } std::string GetVar(std::string varname, const std::string &original_line) @@ -156,8 +156,16 @@ class ModuleAlias : public Module /* Does it match the pattern? */ if (!Aliases[i].format.empty()) { - if (InspIRCd::Match(Aliases[i].case_sensitive, compare, Aliases[i].format)) - continue; + if (Aliases[i].case_sensitive) + { + if (InspIRCd::Match(compare, Aliases[i].format, case_sensitive_map)) + continue; + } + else + { + if (InspIRCd::Match(compare, Aliases[i].format)) + continue; + } } if ((Aliases[i].operonly) && (!IS_OPER(user)))