Show
Ignore:
Timestamp:
11/19/08 13:27:40 (17 years ago)
Author:
yumileroy
Message:

[svn] * Merge Temp dev SVN with Assembla.
* Changes include:

  • Implementation of w12x's Outdoor PvP and Game Event Systems.
  • Temporary removal of IRC Chat Bot (until infinite loop when disabled is fixed).
  • All mangos -> trinity (to convert your mangos_string table, please run mangos_string_to_trinity_string.sql).
  • Improved Config cleanup.
  • And many more changes.

Original author: Seline
Date: 2008-10-14 11:57:03-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/trinitycore/Master.cpp

    r39 r44  
    11/*  
    2  * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 
     2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 
     3 * 
     4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 
    35 * 
    46 * This program is free software; you can redistribute it and/or modify 
     
    911 * This program is distributed in the hope that it will be useful, 
    1012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1214 * GNU General Public License for more details. 
    1315 * 
    1416 * You should have received a copy of the GNU General Public License 
    1517 * along with this program; if not, write to the Free Software 
    16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
    1719 */ 
    1820 
    1921/** \file 
    20     \ingroup mangosd 
     22    \ingroup Trinityd 
    2123*/ 
    2224 
     
    3941#include "ScriptCalls.h" 
    4042#include "Util.h" 
    41 #include "IRCClient.h" 
    4243 
    4344#include "sockets/TcpSocket.h" 
     
    156157        ipaddr_t raip; 
    157158        if (!Utility::u2ip (stringip, raip)) 
    158           sLog.outError ("MaNGOS RA can not bind to ip %s", stringip.c_str ()); 
     159          sLog.outError ("Trinity RA can not bind to ip %s", stringip.c_str ()); 
    159160        else if (RAListenSocket.Bind (raip, raport)) 
    160           sLog.outError ("MaNGOS RA can not bind to port %d on %s", raport, stringip.c_str ()); 
     161          sLog.outError ("Trinity RA can not bind to port %d on %s", raport, stringip.c_str ()); 
    161162        else 
    162163          { 
     
    228229        return 1; 
    229230 
    230     ///- Load IRC Config (need DB for gm levels, AutoBroadcast uses world timers) 
    231     sIRC.LoadConfig(sIRC.CfgFile); 
    232  
    233231    ///- Initialize the World 
    234232    sWorld.SetInitialWorldSettings(); 
     
    243241    // set server online 
    244242    loginDatabase.PExecute("UPDATE realmlist SET color = 0, population = 0 WHERE id = '%d'",realmID); 
    245  
    246         // Create table: has_logged_in_before - used for certain custom options 
    247         sLog.outBasic("ImpConfig: Creating/Checking table 'has_logged_in_before'..."); 
    248         CharacterDatabase.PExecute("CREATE TABLE IF NOT EXISTS `has_logged_in_before` (`guid` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`guid`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='ImpConfig check';"); 
    249         sLog.outBasic("ImpConfig: Done..."); 
    250243 
    251244#ifdef WIN32 
     
    278271                if(!curAff ) 
    279272                { 
    280                     sLog.outError("Processors marked in UseProcessors bitmask (hex) %x not accessible for mangosd. Accessible processors bitmask (hex): %x",Aff,appAff); 
     273                    sLog.outError("Processors marked in UseProcessors bitmask (hex) %x not accessible for Trinityd. Accessible processors bitmask (hex): %x",Aff,appAff); 
    281274                } 
    282275                else 
     
    299292                sLog.outString("TrinityCore process priority class set to HIGH"); 
    300293            else 
    301                 sLog.outError("ERROR: Can't set mangosd process priority class."); 
     294                sLog.outError("ERROR: Can't set Trinityd process priority class."); 
    302295            sLog.outString(); 
    303296        } 
     
    313306    uint32 numLoops = (sConfig.GetIntDefault( "MaxPingTime", 30 ) * (MINUTE * 1000000 / socketSelecttime)); 
    314307    uint32 loopCounter = 0; 
    315  
    316     // Start up IRC bot 
    317     ZThread::Thread irc(new IRCClient); 
    318     irc.setPriority ((ZThread::Priority )2); 
    319  
    320  
    321308 
    322309    ///- Start up freeze catcher thread