diff options
Diffstat (limited to 'src/modules/m_joinflood.cpp')
-rw-r--r-- | src/modules/m_joinflood.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index 0c68da1fb..39cbf783f 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -86,7 +86,6 @@ class joinfloodsettings locked = true; unlocktime = ServerInstance->Time() + 60; } - }; /** Handles channel mode +j @@ -190,11 +189,9 @@ class JoinFlood : public ModeHandler class ModuleJoinFlood : public Module { - JoinFlood jf; public: - ModuleJoinFlood() : jf(this) { @@ -208,7 +205,7 @@ class ModuleJoinFlood : public Module ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } - ModResult OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven) + ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) { if (chan) { @@ -243,10 +240,6 @@ class ModuleJoinFlood : public Module } } - ~ModuleJoinFlood() - { - } - Version GetVersion() { return Version("Provides channel mode +j (join flood protection)", VF_VENDOR); |