summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/recvbuddychangednick.cpp
diff options
context:
space:
mode:
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;
+ }
};