X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_mlock.cpp;h=d9c43ec1087c6b0026a21c85b4b4d0493754638f;hb=b9006ce3cba742ca2a22d601ba1a63a47b0402c9;hp=22faa2119b22eed6f5f1e176449e63dd90a5d331;hpb=e244cb2c63b1ac1d85bdbb4691f7b1bd940ae804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_mlock.cpp b/src/modules/m_mlock.cpp index 22faa2119..d9c43ec10 100644 --- a/src/modules/m_mlock.cpp +++ b/src/modules/m_mlock.cpp @@ -23,15 +23,18 @@ class ModuleMLock : public Module { StringExtItem mlock; -public: - ModuleMLock() : mlock("mlock", this) {}; + public: + ModuleMLock() + : mlock("mlock", this) + { + } Version GetVersion() CXX11_OVERRIDE { return Version("Implements the ability to have server-side MLOCK enforcement.", VF_VENDOR); } - ModResult OnRawMode(User* source, Channel* channel, const char mode, const std::string& parameter, bool adding, int pcnt) + ModResult OnRawMode(User* source, Channel* channel, ModeHandler* mh, const std::string& parameter, bool adding) { if (!channel) return MOD_RES_PASSTHRU; @@ -43,6 +46,7 @@ public: if (!mlock_str) return MOD_RES_PASSTHRU; + const char mode = mh->GetModeChar(); std::string::size_type p = mlock_str->find(mode); if (p != std::string::npos) {