# HG changeset patch # User Myhailo Danylenko # Date 1261784770 -7200 # Node ID 8e64b6d3302efd2b4600f2fc172e360d6f186c7c # Parent 1b3263c96cbebfbfa2a7eeb533d175e6eb8f317b Fix outgoing message header displaying diff -r 1b3263c96cbe -r 8e64b6d3302e cmd.c --- a/cmd.c Sat Dec 26 00:59:53 2009 +0200 +++ b/cmd.c Sat Dec 26 01:46:10 2009 +0200 @@ -62,8 +62,14 @@ return FALSE; } - if (!room) - hk_message_out (to, subject, 0, body, crypted, xep184); + if (!room) { + if (subject) { + gchar *hbody = g_strdup_printf ("[%s]\n%s", subject, body); + hk_message_out (to, NULL, 0, hbody, crypted, xep184); + g_free (hbody); + } else + hk_message_out (to, NULL, 0, body, crypted, xep184); + } return TRUE; }