*/
cprintf("<message to=\"%s\" from=\"FIXME@example.org\" type=\"chat\">", XMPP->client_jid);
if (ptr->text != NULL) {
- cprintf("<body>");
- memfmout(ptr->text, 0, "\n");
- if (ptr->text[strlen(ptr->text)-1] != '\n') cprintf("\n");
+ striplt(ptr->text);
+ cprintf("<body>%s</body>", ptr->text);
free(ptr->text);
- cprintf("</body>");
}
cprintf("</message>");
free(ptr);
void xmpp_query_namespace(char *iq_id, char *iq_from, char *iq_to, char *query_xmlns) {
- lprintf(CTDL_DEBUG, "\e[31mxmpp_query_namespace(%s, %s, %s, %s)\e[0m\n",
- iq_id, iq_from, iq_to, query_xmlns);
+ lprintf(CTDL_DEBUG, "xmpp_query_namespace(%s, %s, %s, %s)\n", iq_id, iq_from, iq_to, query_xmlns);
/*
* Beginning of query result.