#include "inspircd.h"
#include "wildcard.h"
-void spy_userlist(userrec *user, chanrec *c)
+void spy_userlist(User *user, Channel *c)
{
char list[MAXBUF];
size_t dlen, curlen;
/** Handle /SPYLIST
*/
-class cmd_spylist : public command_t
+class cmd_spylist : public Command
{
public:
- cmd_spylist (InspIRCd* Instance) : command_t(Instance,"SPYLIST", 'o', 0)
+ cmd_spylist (InspIRCd* Instance) : Command(Instance,"SPYLIST", 'o', 0)
{
this->source = "m_spy.so";
syntax.clear();
}
- CmdResult Handle (const char** parameters, int pcnt, userrec *user)
+ 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);
/** Handle /SPYNAMES
*/
-class cmd_spynames : public command_t
+class cmd_spynames : public Command
{
public:
- cmd_spynames (InspIRCd* Instance) : command_t(Instance,"SPYNAMES", 'o', 0)
+ cmd_spynames (InspIRCd* Instance) : Command(Instance,"SPYNAMES", 'o', 0)
{
this->source = "m_spy.so";
syntax = "{<channel>{,<channel>}}";
}
- CmdResult Handle (const char** parameters, int pcnt, userrec *user)
+ CmdResult Handle (const char** parameters, int pcnt, User *user)
{
- chanrec* c = NULL;
+ Channel* c = NULL;
if (!pcnt)
{