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)
|
||||||
{
|
{
|
||||||
|
int rc = tox_add_groupchat(profile->tox);
|
||||||
|
if (rc >= 0)
|
||||||
|
twc_chat_search_group(profile, rc, true);
|
||||||
|
else
|
||||||
weechat_printf(profile->buffer,
|
weechat_printf(profile->buffer,
|
||||||
"%sNot implemented :|",
|
"%sCould not create group chat (unknown error)",
|
||||||
weechat_prefix("error"));
|
weechat_prefix("error"));
|
||||||
|
|
||||||
return WEECHAT_RC_OK;
|
return WEECHAT_RC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user