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

Add last seen and public key fields for group peers and add whois command

This commit is contained in:
Jfreegman
2015-09-13 23:15:58 -04:00
parent 97d5fb84fc
commit 2e4c86be4b
8 changed files with 129 additions and 7 deletions

View File

@@ -101,6 +101,7 @@ static struct cmd_func group_commands[] = {
{ "/unignore", cmd_unignore },
{ "/unmod", cmd_unmod },
{ "/unsilence", cmd_unsilence },
{ "/whois", cmd_whois },
#ifdef AUDIO
{ "/mute", cmd_mute },
{ "/sense", cmd_sense },
@@ -108,7 +109,7 @@ static struct cmd_func group_commands[] = {
{ NULL, NULL },
};
#define NUM_SPECIAL_COMMANDS 14
#define NUM_SPECIAL_COMMANDS 15
static const char special_commands[NUM_SPECIAL_COMMANDS][MAX_CMDNAME_SIZE] = {
"/ban",
"/gaccept",
@@ -124,6 +125,7 @@ static const char special_commands[NUM_SPECIAL_COMMANDS][MAX_CMDNAME_SIZE] = {
"/unignore",
"/unmod",
"/unsilence",
"/whois",
};
/* return true if input command is in the special_commands array. False otherwise.*/