summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/getbuddyinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/getbuddyinfo.cpp')
-rw-r--r--protocols/Xfire/src/getbuddyinfo.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/protocols/Xfire/src/getbuddyinfo.cpp b/protocols/Xfire/src/getbuddyinfo.cpp
index 6d21742510..af5f3645b3 100644
--- a/protocols/Xfire/src/getbuddyinfo.cpp
+++ b/protocols/Xfire/src/getbuddyinfo.cpp
@@ -32,25 +32,27 @@
getestet mit clanbuddy's >270 members
*/
-namespace xfirelib {
- using namespace std;
+using namespace std;
- int GetBuddyInfo::getPacketContent(char *packet) {
- int index = 0;
+namespace xfirelib
+{
+ int GetBuddyInfo::getPacketContent(char *packet)
+ {
+ int index = 0;
- VariableValue val;
- val.setValueFromLong(userid,4);
+ VariableValue val;
+ val.setValueFromLong(userid, 4);
- packet[index++] = 0x01;
- packet[index++] = 0x02;
- index += val.writeValue(packet, index);
+ packet[index++] = 0x01;
+ packet[index++] = 0x02;
+ index += val.writeValue(packet, index);
- length = index;
- return index;
- }
-
- int GetBuddyInfo::getPacketAttributeCount() {
- return 1;
- }
+ length = index;
+ return index;
+ }
+ int GetBuddyInfo::getPacketAttributeCount()
+ {
+ return 1;
+ }
}