[Commands] Add #bugs Command. (#2559)

* [Commands] Add #bugs Command.

- Adds a #bugs command for viewing bug reports.
- Remove unused bug related rules in favor of hard-coding the new system.

* Cleanup.

* Typo.

* Push.

* Lower status so it fits with message.
This commit is contained in:
Kinglykrab
2022-11-22 17:32:26 -05:00
committed by GitHub
parent dd3c76e9d2
commit 52e1bc943a
11 changed files with 434 additions and 269 deletions
+3 -1
View File
@@ -135,6 +135,7 @@ namespace Logs {
PacketServerClient,
PacketClientServer,
PacketServerToServer,
Bugs,
MaxCategoryID /* Don't Remove this */
};
@@ -227,7 +228,8 @@ namespace Logs {
"Faction",
"Packet-S->C",
"Packet-C->S",
"Packet-S->S"
"Packet-S->S",
"Bugs"
};
}
+16
View File
@@ -836,6 +836,16 @@
OutF(LogSys, Logs::Moderate, Logs::Expeditions, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)
#define LogBugs(message, ...) do {\
if (LogSys.IsLogEnabled(Logs::General, Logs::Bugs))\
OutF(LogSys, Logs::General, Logs::Bugs, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)
#define LogBugsDetail(message, ...) do {\
if (LogSys.IsLogEnabled(Logs::Detail, Logs::Bugs))\
OutF(LogSys, Logs::Detail, Logs::Bugs, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
} while (0)
#define Log(debug_level, log_category, message, ...) do {\
if (LogSys.IsLogEnabled(debug_level, log_category))\
LogSys.Out(debug_level, log_category, __FILE__, __func__, __LINE__, message, ##__VA_ARGS__);\
@@ -1286,6 +1296,12 @@
#define LogFactionDetail(message, ...) do {\
} while (0)
#define LogBugs(message, ...) do {\
} while (0)
#define LogBugsDetail(message, ...) do {\
} while (0)
#define Log(debug_level, log_category, message, ...) do {\
} while (0)
-2
View File
@@ -742,8 +742,6 @@ RULE_CATEGORY_END()
RULE_CATEGORY(Bugs)
RULE_BOOL(Bugs, ReportingSystemActive, true, "Activates bug reporting")
RULE_BOOL(Bugs, UseOldReportingMethod, true, "Forces the use of the old bug reporting system")
RULE_BOOL(Bugs, DumpTargetEntity, false, "Dumps the target entity, if one is provided")
RULE_CATEGORY_END()
RULE_CATEGORY(Faction)