diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-04-13 17:15:56 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-13 17:15:56 +0200 |
commit | c06507029d0e84ed9805ca03d7296b170b3a5203 (patch) | |
tree | 67261c7d3b9b8e7134be33325f6cdd407b4d60f3 /src/modules/m_spanningtree | |
parent | bf0fad3b3b2afeb55bba26fd9e8e6f947e980878 (diff) |
m_spanningtree Netburst: If a topic was ever set, send it even if it's empty
A new but empty topic should override a non-empty old topic
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/netburst.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index a77623bfc..d37584dad 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -159,7 +159,10 @@ void TreeSocket::SyncChannel(Channel* chan) char data[MAXBUF]; SendFJoins(chan); - if (!chan->topic.empty()) + + // If the topic was ever set, send it, even if it's empty now + // because a new empty topic should override an old non-empty topic + if (chan->topicset != 0) { snprintf(data,MAXBUF,":%s FTOPIC %s %lu %lu %s :%s", ServerInstance->Config->GetSID().c_str(), chan->name.c_str(), (unsigned long) chan->age, (unsigned long)chan->topicset, chan->setby.c_str(), chan->topic.c_str()); this->WriteLine(data); |