summaryrefslogtreecommitdiffstats
path: root/src/account-server
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-05-30 23:18:00 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-05-30 23:18:00 +0200
commit0e04885bcef86a571a0c3069b4706422f9af2566 (patch)
tree1702fff382fae7ff64be7423ee349e0eb2780224 /src/account-server
parent406be26dd7a12795a4a2702aabe2ef46a5e0a6bb (diff)
downloadmanaserv-0e04885bcef86a571a0c3069b4706422f9af2566.tar.gz
manaserv-0e04885bcef86a571a0c3069b4706422f9af2566.tar.xz
manaserv-0e04885bcef86a571a0c3069b4706422f9af2566.zip
Routing party invite through the map server
The player sends party invites to the game server. If the invitee is within the visual range of the inviter, the game server forwards the invite to the chat server. Reviewed-by: Bjorn, Jaxad0127
Diffstat (limited to 'src/account-server')
-rw-r--r--src/account-server/serverhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp
index 1d2f9e0..e5bfdc4 100644
--- a/src/account-server/serverhandler.cpp
+++ b/src/account-server/serverhandler.cpp
@@ -28,6 +28,7 @@
#include "account-server/accounthandler.h"
#include "account-server/character.h"
#include "account-server/storage.h"
+#include "chat-server/chathandler.h"
#include "chat-server/post.h"
#include "common/configuration.h"
#include "common/manaserv_protocol.h"
@@ -544,6 +545,10 @@ void ServerHandler::processMessage(NetComputer *comp, MessageIn &msg)
storage->addTransaction(trans);
} break;
+ case GCMSG_PARTY_INVITE:
+ chatHandler->handlePartyInvite(msg);
+ break;
+
default:
LOG_WARN("ServerHandler::processMessage, Invalid message type: "
<< msg.getId());