mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files * Code cleanup
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#include "../client.h"
|
||||
#include "../quest_parser_collection.h"
|
||||
|
||||
void command_questerrors(Client *c, const Seperator *sep)
|
||||
{
|
||||
std::list<std::string> err;
|
||||
parse->GetErrors(err);
|
||||
c->Message(Chat::White, "Current Quest Errors:");
|
||||
|
||||
auto iter = err.begin();
|
||||
int i = 0;
|
||||
while (iter != err.end()) {
|
||||
if (i >= 30) {
|
||||
c->Message(Chat::White, "Maximum of 30 Errors shown...");
|
||||
break;
|
||||
}
|
||||
|
||||
c->Message(Chat::White, iter->c_str());
|
||||
++i;
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user