mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Refactor GMSayHookCallBackProcess to use category instead of type
This commit is contained in:
parent
40d12d952e
commit
b15e5f7913
@ -3309,7 +3309,7 @@ void Database::SetGroupLeaderName(uint32 gid, const char* name) {
|
||||
result = QueryDatabase(query);
|
||||
|
||||
if(!result.Success()) {
|
||||
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None,, "Error in Database::SetGroupLeaderName: %s", result.ErrorMessage().c_str());
|
||||
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None, "Error in Database::SetGroupLeaderName: %s", result.ErrorMessage().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
20
zone/zone.h
20
zone/zone.h
@ -67,15 +67,15 @@ struct item_tick_struct {
|
||||
std::string qglobal;
|
||||
};
|
||||
|
||||
static uint32 gmsay_log_message_colors[EQEmuLogSys::MaxLogID] = {
|
||||
15, // "Status", - Yellow
|
||||
15, // "Normal", - Yellow
|
||||
3, // "Error", - Red
|
||||
14, // "Debug", - Light Green
|
||||
4, // "Quest",
|
||||
5, // "Command",
|
||||
3 // "Crash"
|
||||
};
|
||||
// static uint32 gmsay_log_message_colors[EQEmuLogSys::MaxLogID] = {
|
||||
// 15, // "Status", - Yellow
|
||||
// 15, // "Normal", - Yellow
|
||||
// 3, // "Error", - Red
|
||||
// 14, // "Debug", - Light Green
|
||||
// 4, // "Quest",
|
||||
// 5, // "Command",
|
||||
// 3 // "Crash"
|
||||
// };
|
||||
|
||||
class Client;
|
||||
class Map;
|
||||
@ -271,7 +271,7 @@ public:
|
||||
// random object that provides random values for the zone
|
||||
EQEmu::Random random;
|
||||
|
||||
static void GMSayHookCallBackProcess(uint16 log_type, std::string& message){ entity_list.MessageStatus(0, 80, gmsay_log_message_colors[log_type], "%s", message.c_str()); }
|
||||
static void GMSayHookCallBackProcess(uint16 log_category, std::string& message){ entity_list.MessageStatus(0, 80, gmsay_log_message_colors[log_category], "%s", message.c_str()); }
|
||||
|
||||
//MODDING HOOKS
|
||||
void mod_init();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user