[Bug Fix] Fix Crash with #task (#4874)

This commit is contained in:
Alex King 2025-04-30 19:15:53 -04:00 committed by GitHub
parent c08f286817
commit 99d249fefd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,11 @@ extern WorldServer worldserver;
void command_task(Client *c, const Seperator *sep)
{
if (!RuleB(TaskSystem, EnableTaskSystem)) {
c->Message(Chat::White, "This command cannot be used while the Task system is disabled.");
return;
}
const int arguments = sep->argnum;
if (!arguments) {
c->Message(Chat::White, "Syntax: #task [subcommand]");