diff options
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); |