summaryrefslogtreecommitdiffstats
path: root/src/game-server/accountconnection.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-03-06 16:12:14 +0000
committerDavid Athay <ko2fan@gmail.com>2009-03-06 16:12:14 +0000
commit3aabbb7ae82c818f584d95460181f70e05d41f32 (patch)
treeb4be67c52cac4e4633e719226eff3ba451e4e001 /src/game-server/accountconnection.cpp
parent6f60667b2671104365c7fcfa7866064e04d50156 (diff)
downloadmanaserv-3aabbb7ae82c818f584d95460181f70e05d41f32.tar.gz
manaserv-3aabbb7ae82c818f584d95460181f70e05d41f32.tar.xz
manaserv-3aabbb7ae82c818f584d95460181f70e05d41f32.zip
Added transactional history to game server.
Diffstat (limited to 'src/game-server/accountconnection.cpp')
-rw-r--r--src/game-server/accountconnection.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game-server/accountconnection.cpp b/src/game-server/accountconnection.cpp
index a69c5ea..10bc6b4 100644
--- a/src/game-server/accountconnection.cpp
+++ b/src/game-server/accountconnection.cpp
@@ -376,3 +376,12 @@ void AccountConnection::updateOnlineStatus(int charId, bool online)
mSyncBuffer->writeByte(online ? 0x01 : 0x00);
syncChanges();
}
+
+void AccountConnection::sendTransaction(int id, int action, const std::string &message)
+{
+ MessageOut msg(GAMSG_TRANSACTION);
+ msg.writeLong(id);
+ msg.writeLong(action);
+ msg.writeString(message);
+ send(msg);
+}