summaryrefslogtreecommitdiff
path: root/src/cmd_ison.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-04 15:02:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-04 15:02:17 +0000
commitfbb32452c3f4c2ea14ba1ba647369c6f508d916f (patch)
tree2645df6584460d244c9c37a5d439ef19d0989136 /src/cmd_ison.cpp
parent1b7b2a696d9bf4ee1d93544138aa775d6fa92c74 (diff)
Check visibility states
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6872 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_ison.cpp')
-rw-r--r--src/cmd_ison.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_ison.cpp b/src/cmd_ison.cpp
index 1f177d230..fde8666ff 100644
--- a/src/cmd_ison.cpp
+++ b/src/cmd_ison.cpp
@@ -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)
{