diff options
Diffstat (limited to 'protocols/Xfire/src/sendacceptinvitationpacket.cpp')
-rw-r--r-- | protocols/Xfire/src/sendacceptinvitationpacket.cpp | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/protocols/Xfire/src/sendacceptinvitationpacket.cpp b/protocols/Xfire/src/sendacceptinvitationpacket.cpp index ece6c0bc3a..fe4010c395 100644 --- a/protocols/Xfire/src/sendacceptinvitationpacket.cpp +++ b/protocols/Xfire/src/sendacceptinvitationpacket.cpp @@ -27,21 +27,20 @@ #include "variablevalue.h" #include "xdebug.h" -namespace xfirelib { - - int SendAcceptInvitationPacket::getPacketContent(char *buf) { - VariableValue val; - val.setName( "name" ); - val.setValue( name.c_str() ); - int index = 0; - index += val.writeName(buf, index); - buf[index++] = 01; - buf[index++] = name.length(); - buf[index++] = 00; - index += val.writeValue(buf, index); - - return index; - } - - +namespace xfirelib +{ + int SendAcceptInvitationPacket::getPacketContent(char *buf) + { + VariableValue val; + val.setName("name"); + val.setValue(name.c_str()); + int index = 0; + index += val.writeName(buf, index); + buf[index++] = 01; + buf[index++] = name.length(); + buf[index++] = 00; + index += val.writeValue(buf, index); + + return index; + } }; |