diff options
author | XTZGZoReX <none@none> | 2008-10-12 14:03:38 -0500 |
---|---|---|
committer | XTZGZoReX <none@none> | 2008-10-12 14:03:38 -0500 |
commit | 054725122f1ef534063ffcbc54b25e167ec3ed9c (patch) | |
tree | e476f95db36b0599d54b74eb01d850d212a09d21 /src/trinitycore/Main.cpp | |
parent | e539b4ca7f89eaaf3efe4cffea7e143f41fc592b (diff) |
[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
Diffstat (limited to 'src/trinitycore/Main.cpp')
-rw-r--r-- | src/trinitycore/Main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/trinitycore/Main.cpp b/src/trinitycore/Main.cpp index 27e8c0861ce..1c3ec6fea6e 100644 --- a/src/trinitycore/Main.cpp +++ b/src/trinitycore/Main.cpp @@ -25,6 +25,8 @@ #include "Config/ConfigEnv.h" #include "Log.h" #include "Master.h" +#include "../game/IRCConf.h" +#include "../game/IRCClient.h" #ifndef _TRINITY_CORE_CONFIG # define _TRINITY_CORE_CONFIG "trinitycore.conf" @@ -75,6 +77,7 @@ extern int main(int argc, char **argv) { ///- Command line parsing to get the configuration file name char const* cfg_file = _TRINITY_CORE_CONFIG; + char const* mc_cfg_file = _TRINITY_CORE_CONFIG; int c=1; while( c < argc ) { @@ -135,7 +138,8 @@ extern int main(int argc, char **argv) sLog.outError("Could not find configuration file %s.", cfg_file); return 1; } - + + sIRC.SetCfg(mc_cfg_file); sLog.outString("Using configuration file %s.", cfg_file); uint32 confVersion = sConfig.GetIntDefault("ConfVersion", 0); |