summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-27 15:38:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-27 15:38:27 +0000
commit8fd2f620cef9d43a7271d05e82bdce6705b9af3b (patch)
treee3e935a27d5b1fb96a6e6fe637964e82c36a4fb8
parent407ebe550e7d55910bd7a2db530c07c600f019ce (diff)
Dont echo the JOIN to the user whos speaking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8393 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_delayjoin.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp
index b837d79c0..ef7d96f5a 100644
--- a/src/modules/m_delayjoin.cpp
+++ b/src/modules/m_delayjoin.cpp
@@ -220,7 +220,11 @@ class ModuleDelayJoin : public Module
for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++)
{
- /* User only appears to vanish for non-opers */
+ /* User doesnt get a JOIN sent to themselves */
+ if (user == i->first)
+ continue;
+
+ /* Users with a visibility state that hides them dont appear */
if (user->Visibility && !user->Visibility->VisibleTo(i->first))
continue;