summaryrefslogtreecommitdiffstats
path: root/src/account-server/main-account.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-09-19 14:39:49 +0000
committerDavid Athay <ko2fan@gmail.com>2008-09-19 14:39:49 +0000
commit712b197ea0fb305905b4762422fdae1c49008710 (patch)
treea063bac5542f1408283d8150bde5346c2e24640d /src/account-server/main-account.cpp
parent410f448669a2ed843ff0b412924c04c8fbe87458 (diff)
downloadmanaserv-712b197ea0fb305905b4762422fdae1c49008710.tar.gz
manaserv-712b197ea0fb305905b4762422fdae1c49008710.tar.xz
manaserv-712b197ea0fb305905b4762422fdae1c49008710.zip
Added post communication between chat and game servers.
Diffstat (limited to 'src/account-server/main-account.cpp')
-rw-r--r--src/account-server/main-account.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp
index c4c451e..f203f36 100644
--- a/src/account-server/main-account.cpp
+++ b/src/account-server/main-account.cpp
@@ -38,6 +38,7 @@
#include "chat-server/chatchannelmanager.hpp"
#include "chat-server/chathandler.hpp"
#include "chat-server/guildmanager.hpp"
+#include "chat-server/post.hpp"
#include "common/configuration.hpp"
#include "net/connectionhandler.hpp"
#include "net/messageout.hpp"
@@ -67,6 +68,9 @@ ChatChannelManager *chatChannelManager;
/** Guild Manager */
GuildManager *guildManager;
+/** Post Manager */
+PostManager *postalManager;
+
/** Callback used when SIGQUIT signal is received. */
static void closeGracefully(int)
{
@@ -151,6 +155,8 @@ static void initialize()
chatChannelManager = new ChatChannelManager;
// Initialise the Guild manager
guildManager = new GuildManager;
+ // Initialise the post manager
+ postalManager = new PostManager;
// --- Initialize the global handlers
// FIXME: Make the global handlers global vars or part of a bigger
@@ -192,6 +198,7 @@ static void deinitialize()
delete stringFilter;
delete chatChannelManager;
delete guildManager;
+ delete postalManager;
// Get rid of persistent data storage
delete storage;