No more missing text when converting IRC colors to xhtml-im

fix #2496
This commit is contained in:
Florent Le Coz
2014-04-17 20:37:46 +02:00
parent 9683f0a0b2
commit bd7936bdfe
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ Xmpp::body irc_format_to_xhtmlim(const std::string& s)
const std::string txt = s.substr(pos_start, pos_end-pos_start);
cleaned += txt;
if (current_node->has_children())
current_node->get_last_child()->set_tail(txt);
current_node->get_last_child()->add_to_tail(txt);
else
current_node->set_inner(txt);