summaryrefslogtreecommitdiff
path: root/src/modules/m_delayjoin.cpp
diff options
context:
space:
mode:
authordz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-01 16:44:49 +0000
committerdz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-01 16:44:49 +0000
commitc24755c99f3d94d9f4c7497b52869e1f8f6a1164 (patch)
tree839072a5901ef1e4a8aacdeaf4bda179eaa422f8 /src/modules/m_delayjoin.cpp
parenta8e90d230557e4490a1ee1f4a76ea4180916a043 (diff)
Don't prevent a user from seeing themself on NAMES if +D is set, fixes part of bug #697 reported by Ankit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11022 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_delayjoin.cpp')
-rw-r--r--src/modules/m_delayjoin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp
index d47976c09..4a250ba81 100644
--- a/src/modules/m_delayjoin.cpp
+++ b/src/modules/m_delayjoin.cpp
@@ -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);