summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/inviterequestpacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/inviterequestpacket.cpp')
-rw-r--r--protocols/Xfire/src/inviterequestpacket.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/protocols/Xfire/src/inviterequestpacket.cpp b/protocols/Xfire/src/inviterequestpacket.cpp
index dc105d31ff..a6f976f094 100644
--- a/protocols/Xfire/src/inviterequestpacket.cpp
+++ b/protocols/Xfire/src/inviterequestpacket.cpp
@@ -24,28 +24,28 @@
#include "inviterequestpacket.h"
#include "variablevalue.h"
-#include <string>
-namespace xfirelib {
- using namespace std;
+using namespace std;
- void InviteRequestPacket::parseContent(char *buf, int length, int numberOfAtts) {
- VariableValue val;
- int index = 0;
- index += val.readName(buf,index);
- index += 4; // Ignore 04 01 01 00
- index += val.readValue(buf,index,-1,1);
- name = string(val.getValue(),val.getValueLength());
-
- index += val.readName(buf,index);
- index += 4; // Ignore 04 01 01 00
- index += val.readValue(buf,index,-1,1);
- nick = string(val.getValue(),val.getValueLength());
-
- index += val.readName(buf,index);
- index += 4; // Ignore 04 01 01 00
- index += val.readValue(buf,index,-1,1);
- msg = string(val.getValue(),val.getValueLength());
- }
+namespace xfirelib
+{
+ void InviteRequestPacket::parseContent(char *buf, int, int)
+ {
+ VariableValue val;
+ int index = 0;
+ index += val.readName(buf, index);
+ index += 4; // Ignore 04 01 01 00
+ index += val.readValue(buf, index, -1, 1);
+ name = string(val.getValue(), val.getValueLength());
+ index += val.readName(buf, index);
+ index += 4; // Ignore 04 01 01 00
+ index += val.readValue(buf, index, -1, 1);
+ nick = string(val.getValue(), val.getValueLength());
+
+ index += val.readName(buf, index);
+ index += 4; // Ignore 04 01 01 00
+ index += val.readValue(buf, index, -1, 1);
+ msg = string(val.getValue(), val.getValueLength());
+ }
};