diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-04 14:30:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-04 14:30:08 +0000 |
commit | 3759fe0ba2420bd564abb4b034582ea0866907aa (patch) | |
tree | 23b261f13410ad3fefcd74c3ee06bf21a7bc95fe /src/modules/m_namesx.cpp | |
parent | c78863d6037864781670723e66be8f3fb5c68450 (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/modules/m_namesx.cpp')
-rw-r--r-- | src/modules/m_namesx.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index 8aa15f965..badbae074 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -81,9 +81,11 @@ class ModuleNamesX : public Module for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) { if ((!has_user) && (i->second->modes[UM_INVISIBLE])) - { continue; - } + + if (i->second->Visibility && !i->second->Visibility->VisibleTo(user)) + continue; + size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", Ptr->GetAllPrefixChars(i->second), i->second->nick); curlen += ptrlen; ptr += ptrlen; |