using namespace std;
-/*
- * DEVOICE module for InspIRCd
- * Syntax: /DEVOICE <#chan>
- */
-
/* $ModDesc: Provides an extended version of /WHO for opers */
#include "inspircd_config.h"
#include "globals.h"
#include "modules.h"
#include "helperfuncs.h"
+#include "message.h"
#include "hashcomp.h"
#include "typedefs.h"
{
if ((user->chans.size()) && (user->chans[0].channel))
{
- int n_list = 0;
for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
{
Ptr = i->second->chans[0].channel;
Ptr = FindChan(parameters[0]);
if (Ptr)
{
- int n_list = 0;
for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
{
if ((has_channel(i->second,Ptr)) && (isnick(i->second->nick)))
{
WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, parameters[0]);
}
+ return 1;
}
else
{
: "*", u->ident, u->dhost, u->server, u->nick, tmp, u->fullname);
}
WriteServ(user->fd,"315 %s %s :End of /WHO list.",user->nick, parameters[0]);
+ return 1;
}
}
if (pcnt == 2)
return 1;
}
}
+ return 0;
}
virtual ~ModuleOperWho()