summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/recvbuddychangednick.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/recvbuddychangednick.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/recvbuddychangednick.cpp')
-rw-r--r--protocols/Xfire/src/recvbuddychangednick.cpp33
1 files changed, 17 insertions, 16 deletions
diff --git a/protocols/Xfire/src/recvbuddychangednick.cpp b/protocols/Xfire/src/recvbuddychangednick.cpp
index f48b8da043..2a1bc4188c 100644
--- a/protocols/Xfire/src/recvbuddychangednick.cpp
+++ b/protocols/Xfire/src/recvbuddychangednick.cpp
@@ -28,21 +28,22 @@
//packet liest neue nicks ein
-namespace xfirelib {
- using namespace std;
-
- void RecvBuddyChangedNick::parseContent(char *buf, int length, int numberOfAtts) {
- VariableValue val;
- int index = 0;
- index +=2; // Ignore 02 01 02 ??
- index += val.readValue(buf,index,4);
- userid = val.getValueAsLong();
- index +=2; // Ignore 0d 01
- int l = (unsigned char)buf[index++];
- index++;
- index += val.readValue(buf,index,l);
- string stringvalue = string(val.getValue(),l);
- this->newnick=stringvalue;
- }
+using namespace std;
+namespace xfirelib
+{
+ void RecvBuddyChangedNick::parseContent(char *buf, int, int)
+ {
+ VariableValue val;
+ int index = 0;
+ index += 2; // Ignore 02 01 02 ??
+ index += val.readValue(buf, index, 4);
+ userid = val.getValueAsLong();
+ index += 2; // Ignore 0d 01
+ int l = (unsigned char)buf[index++];
+ index++;
+ index += val.readValue(buf, index, l);
+ string stringvalue = string(val.getValue(), l);
+ this->newnick = stringvalue;
+ }
};