summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/sendnickchangepacket.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
commit85bd008c039eb1d93894e94fba9d158a42a71a12 (patch)
tree2d72d10759f6928e9e4b960175d2de01b5cf7e12 /protocols/Xfire/src/sendnickchangepacket.cpp
parent222802c2986dcaf029fdfb828b7679bdabfa7bb2 (diff)
massive code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/sendnickchangepacket.cpp')
-rw-r--r--protocols/Xfire/src/sendnickchangepacket.cpp31
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;
+ }
};