summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-26 20:24:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-26 20:24:32 +0000
commit703ff062904cefd60420282cb5f25f22576b7932 (patch)
tree9c33d4925553238845bb82aaa01bb8db729cc43c /src/modules
parentd22271ed979f0fd5984bfa7e7fd1a9f3966d572e (diff)
Whoops, ballsed up the nameslist generation :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8374 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_delayjoin.cpp13
1 files changed, 5 insertions, 8 deletions
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;
}