X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_ison.cpp;h=c76bf40e101c8a9c6073150ad729efa2af9119ca;hb=cd7657bddc7a6dc2e7326077d173a874bf71f6bd;hp=1f177d2302e9a54e4912f2e0b5ad8127ca29dea7;hpb=610a2edba049eaede5e0ccaed4c10a0b23e16e6c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_ison.cpp b/src/cmd_ison.cpp index 1f177d230..c76bf40e1 100644 --- a/src/cmd_ison.cpp +++ b/src/cmd_ison.cpp @@ -11,11 +11,11 @@ * --------------------------------------------------- */ -#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); } @@ -60,6 +60,9 @@ CmdResult cmd_ison::Handle (const char** parameters, int pcnt, userrec *user) if (u) { + if (u->Visibility && !u->Visibility->VisibleTo(user)) + continue; + reply.append(u->nick).append(" "); if (reply.length() > 450) {