summaryrefslogtreecommitdiff
path: root/src/modules/m_delayjoin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_delayjoin.cpp')
-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;
}