diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index a1df169e1..33b3e2bdb 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1545,9 +1545,7 @@ class TreeSocket : public InspSocket time_t ourTS = time(NULL)+600; chanrec* us = this->Instance->FindChan(channel); if (us) - { ourTS = us->age; - } /* XXX: PAY ATTENTION: * In 1.1, if they have the newer channel, we immediately clear @@ -1560,7 +1558,8 @@ class TreeSocket : public InspSocket { Instance->Log(DEBUG,"FJOIN detected, our TS=%lu, their TS=%lu",ourTS,TS); std::deque<std::string> param_list; - us->age = TS; + if (us) + us->age = TS; ourTS = TS; param_list.push_back(chan->name); Instance->Log(DEBUG,"REMOVE ALL STATUS MODES FROM OUR USERS *NOW*"); |