diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-04 19:06:17 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-07-04 19:19:40 +0200 |
commit | 65b0aa4d5feb8aaf90e60c654636f547ea047682 (patch) | |
tree | e57a85f4afd2211a8508e7722efc5f06fb566668 /src/modules | |
parent | baa9ba88b78cf9de5e37dc78433c4e2f91ee9c79 (diff) |
m_delaymsg Remove unused code
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_delaymsg.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index baa6355ad..c0ff09ccf 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -18,14 +18,11 @@ #include "inspircd.h" -#include <stdarg.h> /* $ModDesc: Provides channelmode +d <int>, to deny messages to a channel until <int> seconds. */ class DelayMsgMode : public ModeHandler { - private: - CUList empty; public: LocalIntExt jointime; DelayMsgMode(Module* Parent) : ModeHandler(Parent, "delaymsg", 'd', PARAM_SETONLY, MODETYPE_CHANNEL) @@ -55,7 +52,6 @@ class ModuleDelayMsg : public Module Implementation eventlist[] = { I_OnUserJoin, I_OnUserPreMessage}; ServerInstance->Modules->Attach(eventlist, this, 2); } - ~ModuleDelayMsg(); Version GetVersion(); void OnUserJoin(Membership* memb, bool sync, bool created, CUList&); ModResult OnUserPreMessage(User* user, void* dest, int target_type, std::string &text, char status, CUList &exempt_list); @@ -90,10 +86,6 @@ ModeAction DelayMsgMode::OnModeChange(User* source, User* dest, Channel* channel return MODEACTION_ALLOW; } -ModuleDelayMsg::~ModuleDelayMsg() -{ -} - Version ModuleDelayMsg::GetVersion() { return Version("Provides channelmode +d <int>, to deny messages to a channel until <int> seconds.", VF_VENDOR); @@ -121,7 +113,7 @@ ModResult ModuleDelayMsg::OnUserPreMessage(User* user, void* dest, int target_ty if (!memb) return MOD_RES_PASSTHRU; - + time_t ts = djm.jointime.get(memb); if (ts == 0) |