[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:
XTZGZoReX
2008-10-12 14:03:38 -05:00
parent e539b4ca7f
commit 054725122f
42 changed files with 5363 additions and 13568 deletions

View File

@@ -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)