Core: Allow toggling ticketsystem on/off by config-setting (patch by leak)
Closes issue 4744. --HG-- branch : trunk
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
// from blizzard lua
|
||||
enum GMTicketSystemStatus
|
||||
{
|
||||
GMTICKET_QUEUE_STATUS_DISABLED = -1,
|
||||
GMTICKET_QUEUE_STATUS_DISABLED = 0,
|
||||
GMTICKET_QUEUE_STATUS_ENABLED = 1,
|
||||
};
|
||||
|
||||
@@ -134,6 +134,11 @@ public:
|
||||
uint64 GetOpenTicketCount() { return m_openTickets; }
|
||||
uint64 GetNextSurveyID() { return ++m_GMSurveyID; }
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
SetStatus(sWorld.getBoolConfig(CONFIG_ALLOW_TICKETS));
|
||||
}
|
||||
|
||||
GM_Ticket *GetOldestOpenGMTicket()
|
||||
{
|
||||
for (GmTicketList::const_iterator i = m_GMTicketList.begin(); i != m_GMTicketList.end(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user