summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-04-28 17:18:00 +0000
committerDavid Athay <ko2fan@gmail.com>2008-04-28 17:18:00 +0000
commit7802bc28e08c7660ffa524683911eba58099e9db (patch)
treeb7dc571f2fb3b41f5066548ef5a213035658447b /src
parent19d8859a9c997591d8e0fbbda745da7258104eee (diff)
downloadmanaserv-7802bc28e08c7660ffa524683911eba58099e9db.tar.gz
manaserv-7802bc28e08c7660ffa524683911eba58099e9db.tar.bz2
manaserv-7802bc28e08c7660ffa524683911eba58099e9db.tar.xz
manaserv-7802bc28e08c7660ffa524683911eba58099e9db.zip
Added sending who accepted invite on invite response to client
Diffstat (limited to 'src')
-rw-r--r--src/chat-server/chathandler.cpp1
-rw-r--r--src/defines.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/chat-server/chathandler.cpp b/src/chat-server/chathandler.cpp
index 6f7fac9c..423ee743 100644
--- a/src/chat-server/chathandler.cpp
+++ b/src/chat-server/chathandler.cpp
@@ -935,6 +935,7 @@ bool ChatHandler::handlePartyJoin(const std::string &invited, const std::string
c1->party->addUser(invited);
c2->party = c1->party;
// was successful so return success to inviter
+ out.writeString(invited);
out.writeByte(ERRMSG_OK);
c1->send(out);
return true;
diff --git a/src/defines.h b/src/defines.h
index 640eb9bc..17cafca1 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -202,7 +202,7 @@ enum {
// Party
PCMSG_PARTY_INVITE = 0x03A0, // S name
- CPMSG_PARTY_INVITE_RESPONSE = 0x03A1, // B error
+ CPMSG_PARTY_INVITE_RESPONSE = 0x03A1, // B error, S name
CPMSG_PARTY_INVITED = 0x03A2, // S name
PCMSG_PARTY_ACCEPT_INVITE = 0x03A5, // S name
CPMSG_PARTY_ACCEPT_INVITE_RESPONSE = 0x03A6, // B error