Core/Chat: move chat link validation code into separate classes and improve some validation logic
Core/Misc: fix non-pch build
This commit is contained in:
@@ -17,12 +17,15 @@
|
||||
*/
|
||||
|
||||
#include "Common.h"
|
||||
#include "TicketMgr.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "SQLStorage.h"
|
||||
#include "SQLStorageImpl.h"
|
||||
#include "Log.h"
|
||||
#include "TicketMgr.h"
|
||||
#include "WorldPacket.h"
|
||||
#include "WorldSession.h"
|
||||
#include "Chat.h"
|
||||
#include "World.h"
|
||||
|
||||
inline float GetAge(uint64 t) { return float(time(NULL) - t) / DAY; }
|
||||
|
||||
@@ -197,6 +200,8 @@ void GmTicket::TeleportTo(Player* player) const
|
||||
// Ticket manager
|
||||
TicketMgr::TicketMgr() : _lastTicketId(0), _lastSurveyId(0), _openTicketCount(0), _lastChange(time(NULL)), _status(true) { }
|
||||
|
||||
void TicketMgr::Initialize() { SetStatus(sWorld->getBoolConfig(CONFIG_ALLOW_TICKETS)); }
|
||||
|
||||
void TicketMgr::LoadTickets()
|
||||
{
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
|
||||
#include <string>
|
||||
#include <ace/Singleton.h>
|
||||
#include "Common.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "SQLStorage.h"
|
||||
#include "SQLStorageImpl.h"
|
||||
#include "Chat.h"
|
||||
#include "World.h"
|
||||
|
||||
#include "ObjectMgr.h"
|
||||
|
||||
class ChatHandler;
|
||||
|
||||
// from blizzard lua
|
||||
enum GMTicketSystemStatus
|
||||
@@ -211,7 +209,7 @@ public:
|
||||
uint32 GetOpenTicketCount() const { return _openTicketCount; }
|
||||
uint32 GetNextSurveyID() { return ++_lastSurveyId; }
|
||||
|
||||
void Initialize() { SetStatus(sWorld->getBoolConfig(CONFIG_ALLOW_TICKETS)); }
|
||||
void Initialize();
|
||||
|
||||
void ShowList(ChatHandler& handler, bool onlineOnly) const;
|
||||
void ShowClosedList(ChatHandler& handler) const;
|
||||
|
||||
Reference in New Issue
Block a user