From 014a2070ca56357c9b417b9f2a011f57bebf7b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Tue, 18 Nov 2014 15:18:02 +0100 Subject: [PATCH] Implemented /group create. --- src/twc-commands.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/twc-commands.c b/src/twc-commands.c index 885f649..d48b505 100644 --- a/src/twc-commands.c +++ b/src/twc-commands.c @@ -493,9 +493,14 @@ twc_cmd_group(void *data, struct t_gui_buffer *buffer, // /group create if (argc == 2 && weechat_strcasecmp(argv[1], "create") == 0) { - weechat_printf(profile->buffer, - "%sNot implemented :|", - weechat_prefix("error")); + int rc = tox_add_groupchat(profile->tox); + if (rc >= 0) + twc_chat_search_group(profile, rc, true); + else + weechat_printf(profile->buffer, + "%sCould not create group chat (unknown error)", + weechat_prefix("error")); + return WEECHAT_RC_OK; }