summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/netburst.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp
index b97c582d0..704afdc42 100644
--- a/src/modules/m_spanningtree/netburst.cpp
+++ b/src/modules/m_spanningtree/netburst.cpp
@@ -159,6 +159,7 @@ void TreeSocket::SendXLines(TreeServer* Current)
const char* sn = n.c_str();
std::vector<std::string> types = ServerInstance->XLines->GetAllTypes();
+ time_t current = ServerInstance->Time();
for (std::vector<std::string>::iterator it = types.begin(); it != types.end(); ++it)
{
@@ -174,6 +175,11 @@ void TreeSocket::SendXLines(TreeServer* Current)
if (!i->second->IsBurstable())
break;
+ /* If it's expired, don't bother to burst it
+ */
+ if (i->second->duration && current > i->second->expiry)
+ continue;
+
snprintf(data,MAXBUF,":%s ADDLINE %s %s %s %lu %lu :%s",sn, it->c_str(), i->second->Displayable(),
i->second->source,
(unsigned long)i->second->set_time,