mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
27 lines
618 B
C++
Executable File
27 lines
618 B
C++
Executable File
#include "../client.h"
|
|
#include "../quest_parser_collection.h"
|
|
|
|
void command_questerrors(Client *c, const Seperator *sep)
|
|
{
|
|
std::list<std::string> quest_errors;
|
|
parse->GetErrors(quest_errors);
|
|
|
|
if (quest_errors.size()) {
|
|
c->Message(Chat::White, "Quest errors currently are as follows:");
|
|
|
|
int error_index = 0;
|
|
for (auto quest_error : quest_errors) {
|
|
if (error_index >= 30) {
|
|
c->Message(Chat::White, "Maximum of 30 errors shown.");
|
|
break;
|
|
}
|
|
|
|
c->Message(Chat::White, quest_error.c_str());
|
|
error_index++;
|
|
}
|
|
} else {
|
|
c->Message(Chat::White, "There are no Quest errors currently.");
|
|
}
|
|
}
|
|
|