fix multiline tests

This commit is contained in:
Luca Matei Pintilie
2025-11-28 20:30:12 +01:00
committed by mathieui
parent 6993577cbe
commit f2a55c4f27
6 changed files with 11 additions and 17 deletions
+1 -1
View File
@@ -1528,7 +1528,7 @@ void IrcClient::process_batch(const std::string& reference_tag)
for (const IrcMessage& message: it->second.second)
{
auto it_tags = message.tags.find("draft/multiline-concat");
if (it_tags == message.tags.end())
if (!body.empty() && it_tags == message.tags.end())
body += "\n" + message.arguments[1];
else
body += message.arguments[1];