diff options
| author | 2019-01-02 20:21:21 +0000 | |
|---|---|---|
| committer | 2019-01-02 20:28:48 +0000 | |
| commit | e433401fb883584d32b9b8159370ee57823b01bf (patch) | |
| tree | 9031adea3ee5a5675bb94aac0498ee45d0ddcee1 /src/modules/m_spanningtree/utils.cpp | |
| parent | Fix message tags not being broadcast across the network. (diff) | |
| download | inspircd++-e433401fb883584d32b9b8159370ee57823b01bf.tar.gz inspircd++-e433401fb883584d32b9b8159370ee57823b01bf.tar.bz2 inspircd++-e433401fb883584d32b9b8159370ee57823b01bf.zip | |
Fix a crash when trying to use ROUTE_TYPE_MESSAGE with no message.
Diffstat (limited to 'src/modules/m_spanningtree/utils.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 42eb80de5..1f2ed9c90 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -359,7 +359,9 @@ void SpanningTreeUtilities::SendChannelMessage(const std::string& prefix, Channe msg.push_raw(' '); if (status != 0) msg.push_raw(status); - msg.push_raw(target->name).push_last(text); + msg.push_raw(target->name); + if (!text.empty()) + msg.push_last(text); TreeSocketSet list; this->GetListOfServersForChannel(target, list, status, exempt_list); |
