mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
[svn] * Various small changes here and there.
* Implementing MangChat IRC system. * Added new config option, MAX_WHO, can be used to set the limit of characters being sent in a /who request from client. --HG-- branch : trunk
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include "RASocket.h"
|
||||
#include "ScriptCalls.h"
|
||||
#include "Util.h"
|
||||
#include "IRCClient.h"
|
||||
|
||||
#include "sockets/TcpSocket.h"
|
||||
#include "sockets/Utility.h"
|
||||
@@ -226,6 +227,9 @@ int Master::Run()
|
||||
if (!_StartDB())
|
||||
return 1;
|
||||
|
||||
///- Load IRC Config (need DB for gm levels, AutoBroadcast uses world timers)
|
||||
sIRC.LoadConfig(sIRC.CfgFile);
|
||||
|
||||
///- Initialize the World
|
||||
sWorld.SetInitialWorldSettings();
|
||||
|
||||
@@ -309,6 +313,12 @@ int Master::Run()
|
||||
uint32 numLoops = (sConfig.GetIntDefault( "MaxPingTime", 30 ) * (MINUTE * 1000000 / socketSelecttime));
|
||||
uint32 loopCounter = 0;
|
||||
|
||||
// Start up IRC bot
|
||||
ZThread::Thread irc(new IRCClient);
|
||||
irc.setPriority ((ZThread::Priority )2);
|
||||
|
||||
|
||||
|
||||
///- Start up freeze catcher thread
|
||||
uint32 freeze_delay = sConfig.GetIntDefault("MaxCoreStuckTime", 0);
|
||||
if(freeze_delay)
|
||||
|
||||
Reference in New Issue
Block a user