30#include <libcitadel.h>
52 while (
CC->FirstExpressMessage != NULL) {
55 ptr =
CC->FirstExpressMessage;
56 CC->FirstExpressMessage =
CC->FirstExpressMessage->next;
59 cprintf(
"<message to=\"%s\" from=\"%s\" type=\"chat\">",
60 xmlesc(xmlbuf1,
XMPP->client_jid,
sizeof xmlbuf1),
63 if (ptr->
text != NULL) {
81 if (message_body == NULL)
return;
82 if (message_to == NULL)
return;
83 if (IsEmptyStr(message_to))
return;
84 if (!
CC->logged_in)
return;
100 XMPP->message_body = NULL;
101 XMPP->message_to[0] = 0;
int PerformXmsgHooks(char *sender, char *sender_email, char *recp, char *msg)
char * xmlesc(char *buf, char *str, int bufsiz)
char cs_principal_id[256]
void cprintf(const char *format,...)
void begin_critical_section(int which_one)
void end_critical_section(int which_one)
void xmpp_output_incoming_messages(void)
void xmpp_send_message(char *message_to, char *message_body)