From d90eb49281efcf2db039fbaacccebd4acdc15f7f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 29 Sep 2008 22:37:25 +0200 Subject: Einige Fehler am RemoteLogger behoben --- src/Net/Packets/LogPacket.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Net/Packets/LogPacket.h') diff --git a/src/Net/Packets/LogPacket.h b/src/Net/Packets/LogPacket.h index dd406b4..040f21a 100644 --- a/src/Net/Packets/LogPacket.h +++ b/src/Net/Packets/LogPacket.h @@ -69,6 +69,10 @@ class LogPacket : public Packet { return (Common::Logger::MessageLevel)ntohs(logData->level); } + time_t getTimestamp() const { + return (time_t)ntohl(logData->messageTimestamp); + } + std::string getMessage() const { return std::string((char*)logData->message, getLength()-sizeof(LogData)); } -- cgit v1.2.3