Handle sending messages in groupchat

This commit is contained in:
James Booth
2012-11-05 23:24:29 +00:00
parent 8f317f9dbf
commit 517bc30360
4 changed files with 54 additions and 8 deletions

View File

@@ -611,7 +611,11 @@ cmd_execute(const char * const command, const char * const inp)
gboolean
cmd_execute_default(const char * const inp)
{
if (win_in_chat()) {
if (win_in_groupchat()) {
char *recipient = win_get_recipient();
jabber_send_groupchat(inp, recipient);
free(recipient);
} else if (win_in_chat()) {
char *recipient = win_get_recipient();
jabber_send(inp, recipient);