aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Tickets/TicketMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Tickets/TicketMgr.cpp')
-rwxr-xr-xsrc/server/game/Tickets/TicketMgr.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/game/Tickets/TicketMgr.cpp b/src/server/game/Tickets/TicketMgr.cpp
index 81ebc794669..1789c713a89 100755
--- a/src/server/game/Tickets/TicketMgr.cpp
+++ b/src/server/game/Tickets/TicketMgr.cpp
@@ -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();