Skip to content

Commit

Permalink
Don't prevent a user from seeing themself on NAMES if +D is set, fixe…
Browse files Browse the repository at this point in the history
…s part of bug #697 reported by Ankit

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11022 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
dz committed Feb 1, 2009
1 parent a8e90d2 commit c24755c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/m_delayjoin.cpp
Expand Up @@ -103,6 +103,10 @@ void ModuleDelayJoin::OnNamesListItem(User* issuer, User* user, Channel* channel
if (nick.empty())
return;

/* don't prevent the user from seeing themself */
if (issuer == user)
return;

/* If the user is hidden by delayed join, hide them from the NAMES list */
std::string key("delayjoin_");
key.append(channel->name);
Expand Down

0 comments on commit c24755c

Please sign in to comment.