mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Logging] Table Injection - Member Variable Cleanup (#2281)
* Logsys member variable cleanup, table injection * Private member adjustments, OOB checks * continue
This commit is contained in:
@@ -25,7 +25,7 @@ void command_logs(Client *c, const Seperator *sep)
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
bool is_list = !strcasecmp(sep->arg[1], "list");
|
||||
bool is_reload = !strcasecmp(sep->arg[1], "reload");
|
||||
bool is_set = !strcasecmp(sep->arg[1], "set");
|
||||
@@ -73,7 +73,7 @@ void command_logs(Client *c, const Seperator *sep)
|
||||
max_category_id = (Logs::LogCategory::MaxCategoryID - 1);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
popup_text += fmt::format(
|
||||
"<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td><td>{}</td></tr>",
|
||||
index,
|
||||
|
||||
+3
-1
@@ -2799,7 +2799,9 @@ void Zone::SendDiscordMessage(int webhook_id, const std::string& message)
|
||||
void Zone::SendDiscordMessage(const std::string& webhook_name, const std::string &message)
|
||||
{
|
||||
bool not_found = true;
|
||||
for (auto & w : LogSys.discord_webhooks) {
|
||||
|
||||
for (int i= 0; i < MAX_DISCORD_WEBHOOK_ID; i++) {
|
||||
auto &w = LogSys.GetDiscordWebhooks()[i];
|
||||
if (w.webhook_name == webhook_name) {
|
||||
SendDiscordMessage(w.id, message + "\n");
|
||||
not_found = false;
|
||||
|
||||
Reference in New Issue
Block a user