* ---------------------------------------------------
*/
-#include "users.h"
#include "inspircd.h"
+#include "users.h"
#include "commands/cmd_ison.h"
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
{
return new cmd_ison(Instance);
}
if (u)
{
+ if (u->Visibility && !u->Visibility->VisibleTo(user))
+ continue;
+
reply.append(u->nick).append(" ");
if (reply.length() > 450)
{
/* Its a space seperated list of nicks (RFC1459 says to support this)
*/
irc::spacesepstream list(parameters[i]);
- std::string item = "*";
- while (((item = list.GetToken()) != ""))
+ std::string item;
+
+ while (list.GetToken(item))
{
u = ServerInstance->FindNick(item);
if (ison_already.find(u) != ison_already.end())
if (u)
{
+ if (u->Visibility && !u->Visibility->VisibleTo(user))
+ continue;
+
reply.append(u->nick).append(" ");
if (reply.length() > 450)
{
}
}
}
- /* There will only be one of these, we can bail after. */
- break;
}
}