From b4be0c94ab5fb7e5a7a799a195c78de072a5e315 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 13 Sep 2009 20:31:11 +0000 Subject: Module API changes to use Membership* where sensible git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11699 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_operprefix.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/modules/m_operprefix.cpp') diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index e7a772432..f3137fc24 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -95,17 +95,10 @@ class ModuleOperPrefixMode : public Module ServerInstance->SendMode(modechange,this->ServerInstance->FakeClient); } - void OnPostJoin(User *user, Channel *channel) + void OnPostJoin(Membership* memb) { - if (user && IS_OPER(user)) - { - if (user->IsModeSet('H')) - { - /* we respect your wish to be invisible */ - return; - } - PushChanMode(channel, user); - } + if (IS_OPER(memb->user) && !memb->user->IsModeSet('H')) + PushChanMode(memb->chan, memb->user); } // XXX: is there a better way to do this? -- cgit v1.2.3