]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Whoops, ballsed up the nameslist generation :p
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 26 Oct 2007 20:24:32 +0000 (20:24 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 26 Oct 2007 20:24:32 +0000 (20:24 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8374 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_delayjoin.cpp

index b6fc00f2bfe601e06fc62fbe506fc06bfb51921d..1b631033a2740fe3103c9b4f19e2c3753d030ffe 100644 (file)
@@ -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;
                }