diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:31:11 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:31:11 +0000 |
commit | b4be0c94ab5fb7e5a7a799a195c78de072a5e315 (patch) | |
tree | 48dee3440b9bf1227f39ca2539d7fe55ad53df8b /src/modules/m_delaymsg.cpp | |
parent | ace3d85982f99ab04318ce705fd29fec5ffd7320 (diff) |
Module API changes to use Membership* where sensible
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11699 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_delaymsg.cpp')
-rw-r--r-- | src/modules/m_delaymsg.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index 5e2bb838c..3e9f2641c 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -60,10 +60,7 @@ class ModuleDelayMsg : public Module } ~ModuleDelayMsg(); Version GetVersion(); - void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent, bool created); - void OnUserPart(User* user, Channel* channel, std::string &partmessage, bool &silent); - void OnUserKick(User* source, User* user, Channel* chan, const std::string &reason, bool &silent); - void OnCleanup(int target_type, void* item); + 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); }; @@ -103,11 +100,10 @@ Version ModuleDelayMsg::GetVersion() return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION); } -void ModuleDelayMsg::OnUserJoin(User* user, Channel* channel, bool sync, bool &silent, bool created) +void ModuleDelayMsg::OnUserJoin(Membership* memb, bool sync, bool created, CUList&) { - if (channel->IsModeSet('d')) + if (memb->chan->IsModeSet('d')) { - Membership* memb = channel->GetUser(user); djm.jointime.set(memb, ServerInstance->Time()); } } |