From c24755c99f3d94d9f4c7497b52869e1f8f6a1164 Mon Sep 17 00:00:00 2001 From: dz Date: Sun, 1 Feb 2009 16:44:49 +0000 Subject: 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 --- src/modules/m_delayjoin.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules/m_delayjoin.cpp') 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); -- cgit v1.2.3