summaryrefslogtreecommitdiff
path: root/src/modules/m_nopartmsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nopartmsg.cpp')
-rw-r--r--src/modules/m_nopartmsg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_nopartmsg.cpp b/src/modules/m_nopartmsg.cpp
index 931603907..1ea275167 100644
--- a/src/modules/m_nopartmsg.cpp
+++ b/src/modules/m_nopartmsg.cpp
@@ -35,12 +35,12 @@ class ModulePartMsgBan : public Module
}
- virtual void OnUserPart(User* user, Channel* channel, std::string &partmessage, bool &silent)
+ virtual void OnUserPart(Membership* memb, std::string &partmessage, CUList& excepts)
{
- if (!IS_LOCAL(user))
+ if (!IS_LOCAL(memb->user))
return;
- if (channel->GetExtBanStatus(user, 'p') == MOD_RES_DENY)
+ if (memb->chan->GetExtBanStatus(memb->user, 'p') == MOD_RES_DENY)
partmessage = "";
return;