summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/sendsidpacket.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/sendsidpacket.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/sendsidpacket.cpp')
-rw-r--r--protocols/Xfire/src/sendsidpacket.cpp61
1 files changed, 30 insertions, 31 deletions
diff --git a/protocols/Xfire/src/sendsidpacket.cpp b/protocols/Xfire/src/sendsidpacket.cpp
index 34c80a7ff3..0ca9230bd4 100644
--- a/protocols/Xfire/src/sendsidpacket.cpp
+++ b/protocols/Xfire/src/sendsidpacket.cpp
@@ -31,41 +31,40 @@
whois packet von xfire, für z.b. friends of friends
*/
-namespace xfirelib {
- using namespace std;
+namespace xfirelib
+{
+ int SendSidPacket::getPacketContent(char *packet)
+ {
+ int index = 0;
- int SendSidPacket::getPacketContent(char *packet) {
- int index = 0;
+ XERROR("Send Sid Packet!\n");
- XERROR("Send Sid Packet!\n");
+ packet[index++] = 0x03;
+ packet[index++] = 's';
+ packet[index++] = 'i';
+ packet[index++] = 'd';
+ packet[index++] = 4;
+ packet[index++] = 3;
+ XDEBUG2("Sids: %d\n", sids->size());
+ packet[index++] = sids->size();
+ packet[index++] = 0;
- packet[index++] = 0x03;
- packet[index++] = 's';
- packet[index++] = 'i';
- packet[index++] = 'd';
- packet[index++] = 4;
- packet[index++] = 3;
- XDEBUG2("Sids: %d\n",sids->size());
- packet[index++] = sids->size();
- packet[index++] = 0;
-
- for(uint i = 0 ; i < sids->size() ; i++) {
- XDEBUG2("Sid%d:",i);
- char* sid=sids->at(i);
- for(int u = 0; u <16 ; u++)
- {
- XDEBUG2("%x,",sid[u]);
- packet[index++] = sid[u];
+ for (uint i = 0; i < sids->size(); i++) {
+ XDEBUG2("Sid%d:", i);
+ char* sid = sids->at(i);
+ for (int u = 0; u < 16; u++) {
+ XDEBUG2("%x,", sid[u]);
+ packet[index++] = sid[u];
+ }
+ XDEBUG("\n");
}
- XDEBUG("\n");
- }
-
- length = index;
- return index;
- }
- int SendSidPacket::getPacketAttributeCount() {
- return 1;
- }
+ length = index;
+ return index;
+ }
+ int SendSidPacket::getPacketAttributeCount()
+ {
+ return 1;
+ }
}