[Commands] Remove #guildapprove, #guildcreate, and #guildlist Commands (#2775)

# Notes
- Removes `#guildapprove`, `#guildcreate`, and `#guildlist`.
- Removes associated functions, classes, etc. that were only used in these commands.
- These commands are unused and/or covered by the general `#guild` command.
- Approvals don't really seem to be a thing anymore and the variable itself doesn't exist in stock PEQ database anyway.
This commit is contained in:
Alex King
2023-01-22 12:56:42 -05:00
committed by GitHub
parent 35c3778baf
commit d0edb93d62
7 changed files with 0 additions and 291 deletions
-8
View File
@@ -1,8 +0,0 @@
#include "../client.h"
#include "../guild_mgr.h"
void command_guildapprove(Client *c, const Seperator *sep)
{
guild_mgr.AddMemberApproval(atoi(sep->arg[1]), c);
}
-13
View File
@@ -1,13 +0,0 @@
#include "../client.h"
#include "../guild_mgr.h"
void command_guildcreate(Client *c, const Seperator *sep)
{
if (strlen(sep->argplus[1]) > 4 && strlen(sep->argplus[1]) < 16) {
guild_mgr.AddGuildApproval(sep->argplus[1], c);
}
else {
c->Message(Chat::White, "Guild name must be more than 4 characters and less than 16.");
}
}
-14
View File
@@ -1,14 +0,0 @@
#include "../client.h"
#include "../guild_mgr.h"
void command_guildlist(Client *c, const Seperator *sep)
{
GuildApproval *tmp = guild_mgr.FindGuildByIDApproval(atoi(sep->arg[1]));
if (tmp) {
tmp->ApprovedMembers(c);
}
else {
c->Message(Chat::White, "Could not find reference id.");
}
}