diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:50:43 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:50:43 +0000 |
commit | 94a601fb3b67e72e075af28174094117cd09f5f2 (patch) | |
tree | c667c935abf679c40ca25d5e960ddc497bdedd07 /src/modules/m_invisible.cpp | |
parent | c32734fb23bb7c811076d1f4acc819020533e89c (diff) |
Rip out VisData in preparation for replacing it with more flexible hooks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11640 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_invisible.cpp')
-rw-r--r-- | src/modules/m_invisible.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp index 5c879aea6..1d8c8a385 100644 --- a/src/modules/m_invisible.cpp +++ b/src/modules/m_invisible.cpp @@ -18,39 +18,15 @@ static ConfigReader* conf; -class QuietOper : public VisData -{ - public: - QuietOper() - { - } - - virtual ~QuietOper() - { - } - - virtual bool VisibleTo(User* user) - { - return IS_OPER(user); - } -}; - - class InvisibleMode : public ModeHandler { - QuietOper* qo; public: InvisibleMode(InspIRCd* Instance, Module* Creator) : ModeHandler(Instance, Creator, 'Q', 0, 0, false, MODETYPE_USER, true) { - qo = new QuietOper(); } ~InvisibleMode() { - for (user_hash::iterator i = ServerInstance->Users->clientlist->begin(); i != ServerInstance->Users->clientlist->end(); i++) - if (i->second->Visibility == qo) - i->second->Visibility = NULL; - delete qo; } ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) @@ -66,9 +42,6 @@ class InvisibleMode : public ModeHandler if (m && adding) m->OnUserQuit(dest, "Connection closed", "Connection closed"); - /* Set visibility handler object */ - dest->Visibility = adding ? qo : NULL; - /* This has to come after setting/unsetting the handler */ if (m && !adding) m->OnPostConnect(dest); |