Moved all message sending to client events module

This commit is contained in:
James Booth
2015-04-21 21:57:39 +01:00
parent a4f9661da2
commit 53f2a4a35c
3 changed files with 58 additions and 51 deletions

View File

@@ -43,7 +43,7 @@
#endif
void
client_msg_send(const char * const barejid, const char * const msg)
client_send_msg(const char * const barejid, const char * const msg)
{
char *id = NULL;
@@ -83,4 +83,17 @@ client_msg_send(const char * const barejid, const char * const msg)
#endif
free(id);
}
void
client_send_muc_msg(const char * const roomjid, const char * const msg)
{
message_send_groupchat(roomjid, msg);
}
void
client_send_priv_msg(const char * const fulljid, const char * const msg)
{
message_send_private(fulljid, msg);
ui_outgoing_private_msg(fulljid, msg);
}

View File

@@ -35,6 +35,8 @@
#ifndef CLIENT_EVENTS_H
#define CLIENT_EVENTS_H
void client_msg_send(const char * const barejid, const char * const msg);
void client_send_msg(const char * const barejid, const char * const msg);
void client_send_muc_msg(const char * const roomjid, const char * const msg);
void client_send_priv_msg(const char * const fulljid, const char * const msg);
#endif