Implemented /group create.

This commit is contained in:
Håvard Pettersson 2014-11-18 15:18:02 +01:00
parent d7a72f3383
commit 014a2070ca

View File

@ -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;
}