diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2006-01-20 23:17:19 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2006-01-20 23:17:19 +0000 |
commit | d318b2428878bd0e35b189b3e6d3bffd825da25c (patch) | |
tree | dc61bd08aec87a5293e1ca072079652ad6047423 /src/main.cpp | |
parent | 7960ff184f15a3b6029fef8e5100d24a6c556afe (diff) | |
download | manaserv-d318b2428878bd0e35b189b3e6d3bffd825da25c.tar.gz manaserv-d318b2428878bd0e35b189b3e6d3bffd825da25c.tar.bz2 manaserv-d318b2428878bd0e35b189b3e6d3bffd825da25c.tar.xz manaserv-d318b2428878bd0e35b189b3e6d3bffd825da25c.zip |
Chat channeling commit part 3. Is now linked with the connection handler to chat in a specific channel. Also made some fixes on the chat channeling.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6088654f..fef59d3d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,7 @@ #endif #include "accounthandler.h" +#include "chatchannelmanager.h" #include "chathandler.h" #include "configuration.h" #include "connectionhandler.h" @@ -94,6 +95,8 @@ AccountHandler *accountHandler; /** Communications (chat) message handler */ ChatHandler *chatHandler; +/** Chat Channels Manager */ +ChatChannelManager *chatChannelManager; /** Core game message handler */ GameHandler *gameHandler; @@ -175,8 +178,10 @@ void initialize() // Initialize the global handlers // FIXME: Make the global handlers global vars or part of a bigger // singleton or a local vatiable in the event-loop - accountHandler = new AccountHandler(); + chatChannelManager = new ChatChannelManager(); + chatHandler = new ChatHandler(); + accountHandler = new AccountHandler(); gameHandler = new GameHandler(); connectionHandler = new ConnectionHandler(); @@ -270,6 +275,8 @@ void deinitialize() delete gameHandler; delete connectionHandler; + delete chatChannelManager; + // Get rid of persistent data storage tmwserv::Storage::destroy(); |