diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-10 16:07:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-10 16:07:07 +0000 |
commit | d36107cfe9bcc2b6edd64cafa99fdfc77c3a5fd9 (patch) | |
tree | 0a33ec17b45116f1682b2b4f3a80f898cf9f3710 | |
parent | 945a5587598a3ceb86d83b3ab3c154691995acba (diff) |
SPYLIST is no longer required in 1.2, remove
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8554 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spy.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp index 4d5493337..7420d6d3c 100644 --- a/src/modules/m_spy.cpp +++ b/src/modules/m_spy.cpp @@ -61,34 +61,6 @@ void spy_userlist(User *user, Channel *c) } -/** Handle /SPYLIST - */ -class CommandSpylist : public Command -{ - public: - CommandSpylist (InspIRCd* Instance) : Command(Instance,"SPYLIST", 'o', 0) - { - this->source = "m_spy.so"; - syntax.clear(); - } - - CmdResult Handle (const char** parameters, int pcnt, User *user) - { - ServerInstance->WriteOpers("*** Oper %s used SPYLIST to list +s/+p channels and keys.",user->nick); - user->WriteServ("321 %s Channel :Users Name",user->nick); - for (chan_hash::const_iterator i = ServerInstance->chanlist->begin(); i != ServerInstance->chanlist->end(); i++) - { - if (pcnt && !match(i->second->name, parameters[0])) - continue; - user->WriteServ("322 %s %s %d :[+%s] %s",user->nick,i->second->name,i->second->GetUserCounter(),i->second->ChanModes(true),i->second->topic); - } - user->WriteServ("323 %s :End of channel list.",user->nick); - - /* Dont send out across the network */ - return CMD_LOCALONLY; - } -}; - /** Handle /SPYNAMES */ class CommandSpynames : public Command @@ -130,15 +102,12 @@ class CommandSpynames : public Command class ModuleSpy : public Module { - CommandSpylist *mycommand; CommandSpynames *mycommand2; public: ModuleSpy(InspIRCd* Me) : Module(Me) { - mycommand = new CommandSpylist(ServerInstance); mycommand2 = new CommandSpynames(ServerInstance); - ServerInstance->AddCommand(mycommand); ServerInstance->AddCommand(mycommand2); } @@ -154,3 +123,4 @@ class ModuleSpy : public Module }; MODULE_INIT(ModuleSpy) + |