From 6c88be7255208e6cdcfe9cbd456c6f7afa0a0c45 Mon Sep 17 00:00:00 2001 From: jfreegman Date: Fri, 12 Nov 2021 10:13:32 -0500 Subject: [PATCH] Re-add /group command Another one lost in a rebase --- src/execute.c | 5 +++-- src/help.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/execute.c b/src/execute.c index d4b1e6b..4b5245c 100644 --- a/src/execute.c +++ b/src/execute.c @@ -49,7 +49,8 @@ static struct cmd_func global_commands[] = { { "/connect", cmd_connect }, { "/decline", cmd_decline }, { "/exit", cmd_quit }, - { "/conference", cmd_conference }, + { "/conference",cmd_conference }, + { "/group", cmd_groupchat }, #ifdef GAMES { "/game", cmd_game }, #endif @@ -123,7 +124,7 @@ static struct cmd_func conference_commands[] = { static struct cmd_func groupchat_commands[] = { { "/chatid", cmd_chatid }, - { "/disconnect", cmd_disconnect }, + { "/disconnect",cmd_disconnect }, { "/ignore", cmd_ignore }, { "/kick", cmd_kick }, { "/mod", cmd_mod }, diff --git a/src/help.c b/src/help.c index d5a6529..4b5887c 100644 --- a/src/help.c +++ b/src/help.c @@ -188,6 +188,7 @@ static void help_draw_global(ToxWindow *self) wprintw(win, " /log or : Enable/disable logging\n"); wprintw(win, " /conference : Create a conference where type: text | audio\n"); wprintw(win, " /myid : Print your Tox ID\n"); + wprintw(win, " /group : Create a new group chat\n"); #ifdef GAMES wprintw(win, " /game : Play a game\n"); #endif /* GAMES */