Fix valueless message tags (closes #684)

This commit is contained in:
J-P Nurmi
2014-09-29 13:08:51 +02:00
parent 227f2cfb29
commit 615801c40e
2 changed files with 13 additions and 1 deletions

View File

@@ -502,7 +502,9 @@ void CUtils::SetMessageTags(CString& sLine, const MCString& mssTags) {
if (!sTags.empty()) {
sTags += ";";
}
sTags += it->first + "=" + it->second;
sTags += it->first;
if (!it->second.empty())
sTags += "=" + it->second;
}
sLine = "@" + sTags + " " + sLine;
}