Implemented /group create.
This commit is contained in:
parent
d7a72f3383
commit
014a2070ca
@ -493,9 +493,14 @@ twc_cmd_group(void *data, struct t_gui_buffer *buffer,
|
|||||||
// /group create
|
// /group create
|
||||||
if (argc == 2 && weechat_strcasecmp(argv[1], "create") == 0)
|
if (argc == 2 && weechat_strcasecmp(argv[1], "create") == 0)
|
||||||
{
|
{
|
||||||
weechat_printf(profile->buffer,
|
int rc = tox_add_groupchat(profile->tox);
|
||||||
"%sNot implemented :|",
|
if (rc >= 0)
|
||||||
weechat_prefix("error"));
|
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;
|
return WEECHAT_RC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user