diff options
Diffstat (limited to 'protocols/Xfire/src/sendnickchangepacket.cpp')
-rw-r--r-- | protocols/Xfire/src/sendnickchangepacket.cpp | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/protocols/Xfire/src/sendnickchangepacket.cpp b/protocols/Xfire/src/sendnickchangepacket.cpp index 57d38ac50d..f1afc946fd 100644 --- a/protocols/Xfire/src/sendnickchangepacket.cpp +++ b/protocols/Xfire/src/sendnickchangepacket.cpp @@ -26,24 +26,23 @@ #include "variablevalue.h" #include <string.h> -namespace xfirelib { -/*TODO: this packet is outdated, sniff with official client and change it to a correct implementation*/ - int SendNickChangePacket::getPacketContent(char *buf) { - int index = 0; +namespace xfirelib +{ + int SendNickChangePacket::getPacketContent(char *buf) + { + int index = 0; - VariableValue val; - val.setName("nick"); - val.setValue((char*)nick.c_str(),nick.size()); + VariableValue val; + val.setName("nick"); + val.setValue((char*)nick.c_str(), nick.size()); - index += val.writeName(buf,index); - buf[index++] = 1; - buf[index++] = nick.size(); - buf[index++] = 0; - - index += val.writeValue(buf,index); - - return index; - } + index += val.writeName(buf, index); + buf[index++] = 1; + buf[index++] = nick.size(); + buf[index++] = 0; + index += val.writeValue(buf, index); + return index; + } }; |