From 703ff062904cefd60420282cb5f25f22576b7932 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 26 Oct 2007 20:24:32 +0000 Subject: Whoops, ballsed up the nameslist generation :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8374 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_delayjoin.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp index b6fc00f2b..1b631033a 100644 --- a/src/modules/m_delayjoin.cpp +++ b/src/modules/m_delayjoin.cpp @@ -87,20 +87,17 @@ class ModuleDelayJoin : public Module /* For +D channels ... */ if (Ptr->IsModeSet('D')) { + std::string key("delayjoin_"); + key.append(Ptr->name); + /* Modify the names list, erasing users with the delay join metadata * for this channel (havent spoken yet) */ - ServerInstance->Log(DEBUG,"Iterate"); - for (CUListIter n = nameslist->begin(); n != nameslist->end(); ++n) - { - ServerInstance->Log(DEBUG,"Item"); - - if (!n->first->GetExt("delayjoin_notspoken")) + { + if (!n->first->GetExt(key)) nl.insert(*n); } - - ServerInstance->Log(DEBUG,"Done"); nl[user] = user->nick; nameslist = &nl; } -- cgit v1.2.3