X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_restrictmsg.cpp;h=5fae46d830e6e814068536cadbfdb49408785984;hb=b14ebbccf08ec34a73e1ba271e67da80d9fe805c;hp=bab631b8edfb88d9912dad1c187381968a2f183c;hpb=54d10d53c730ab81ca6464fe2f0e0ecbcd435672;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp index bab631b8e..5fae46d83 100644 --- a/src/modules/m_restrictmsg.cpp +++ b/src/modules/m_restrictmsg.cpp @@ -24,11 +24,6 @@ class ModuleRestrictMsg : public Module { public: - void init() CXX11_OVERRIDE - { - ServerInstance->Modules->Attach(I_OnUserPreMessage, this); - } - ModResult OnUserPreMessage(User* user, void* dest, int target_type, std::string& text, char status, CUList& exempt_list, MessageType msgtype) CXX11_OVERRIDE { if ((target_type == TYPE_USER) && (IS_LOCAL(user)))