summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-04 14:30:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-04 14:30:08 +0000
commit3759fe0ba2420bd564abb4b034582ea0866907aa (patch)
tree23b261f13410ad3fefcd74c3ee06bf21a7bc95fe /src/channels.cpp
parentc78863d6037864781670723e66be8f3fb5c68450 (diff)
Where others charge, we give for free. Have fun and use wisely. With great power comes great responsbility.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6867 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 23aeb32a1..00f8dbce6 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -838,6 +838,9 @@ void chanrec::UserList(userrec *user)
continue;
}
+ if (i->second->Visibility && !i->second->Visibility->VisibleTo(user))
+ continue;
+
size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", this->GetPrefixChar(i->second), i->second->nick);
curlen += ptrlen;