summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/sendstatusmessagepacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/sendstatusmessagepacket.cpp')
-rw-r--r--protocols/Xfire/src/sendstatusmessagepacket.cpp29
1 files changed, 13 insertions, 16 deletions
diff --git a/protocols/Xfire/src/sendstatusmessagepacket.cpp b/protocols/Xfire/src/sendstatusmessagepacket.cpp
index 6495515119..88284ab4de 100644
--- a/protocols/Xfire/src/sendstatusmessagepacket.cpp
+++ b/protocols/Xfire/src/sendstatusmessagepacket.cpp
@@ -24,20 +24,17 @@
#include "sendstatusmessagepacket.h"
-#include <string.h>
-
-namespace xfirelib {
-
- int SendStatusMessagePacket::getPacketContent(char *buf) {
- int index = 0;
- buf[index++] = 0x2e;
- buf[index++] = 0x01;
- buf[index++] = awaymsg.length();
- buf[index++] = 0x00;
- memcpy(buf+index,awaymsg.c_str(),awaymsg.length());
- index+=awaymsg.length();
- return index;
- }
-
-
+namespace xfirelib
+{
+ int SendStatusMessagePacket::getPacketContent(char *buf)
+ {
+ int index = 0;
+ buf[index++] = 0x2e;
+ buf[index++] = 0x01;
+ buf[index++] = awaymsg.length();
+ buf[index++] = 0x00;
+ memcpy(buf + index, awaymsg.c_str(), awaymsg.length());
+ index += awaymsg.length();
+ return index;
+ }
};