1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 01:16:35 +01:00

add group silencing and improve group help menu

This commit is contained in:
Jfreegman
2015-06-04 04:08:11 -04:00
parent 928134da7a
commit 9cd2158c72
5 changed files with 115 additions and 17 deletions

View File

@@ -95,10 +95,12 @@ static struct cmd_func group_commands[] = {
{ "/privacy", cmd_set_privacy },
{ "/prune", cmd_prune },
{ "/rejoin", cmd_rejoin },
{ "/silence", cmd_silence },
{ "/topic", cmd_set_topic },
{ "/unban", cmd_unban },
{ "/unignore", cmd_unignore },
{ "/unmod", cmd_unmod },
{ "/unsilence", cmd_unsilence },
#ifdef AUDIO
{ "/mute", cmd_mute },
{ "/sense", cmd_sense },
@@ -106,8 +108,9 @@ static struct cmd_func group_commands[] = {
{ NULL, NULL },
};
#define NUM_SPECIAL_COMMANDS 11
#define NUM_SPECIAL_COMMANDS 14
static const char special_commands[NUM_SPECIAL_COMMANDS][MAX_CMDNAME_SIZE] = {
"/ban",
"/gaccept",
"/group",
"/ignore",
@@ -116,9 +119,11 @@ static const char special_commands[NUM_SPECIAL_COMMANDS][MAX_CMDNAME_SIZE] = {
"/nick",
"/note",
"/passwd",
"/silence",
"/topic",
"/unignore",
"/unmod",
"/unsilence",
};
/* return true if input command is in the special_commands array. False otherwise.*/