diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-23 17:42:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-23 17:42:48 +0000 |
commit | f86d7e3982a9fa0cfe6fde81e7abf9403ed193f1 (patch) | |
tree | a8cd0d1614d769193d98827af220b104c12a02fa /src/cmd_ison.cpp | |
parent | 5aaa38bea4ff3556dc3bff8c09c72a8067368c17 (diff) |
A couple of tweaks that i did earlier as diffs. ISON didnt always respect invisibility state of users. socketengine iocp didnt range check fd's before passing them for array lookup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7502 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_ison.cpp')
-rw-r--r-- | src/cmd_ison.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_ison.cpp b/src/cmd_ison.cpp index 0cee160c7..d050af982 100644 --- a/src/cmd_ison.cpp +++ b/src/cmd_ison.cpp @@ -36,6 +36,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) { |