From 517bc30360627b34ab74cb679bfb1cf9a67f6630 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 5 Nov 2012 23:24:29 +0000 Subject: Handle sending messages in groupchat --- src/command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 35fe72bb..62eea490 100644 --- a/src/command.c +++ b/src/command.c @@ -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); -- cgit 1.4.1-2-gfad0