summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/sendtypingpacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/sendtypingpacket.cpp')
-rw-r--r--protocols/Xfire/src/sendtypingpacket.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/protocols/Xfire/src/sendtypingpacket.cpp b/protocols/Xfire/src/sendtypingpacket.cpp
index 3cc09d80e9..8e17679135 100644
--- a/protocols/Xfire/src/sendtypingpacket.cpp
+++ b/protocols/Xfire/src/sendtypingpacket.cpp
@@ -3,21 +3,21 @@
/*
* Plugin of miranda IM(ICQ) for Communicating with users of the XFire Network.
*
- * Copyright (C) 2010 by
- * dufte <dufte@justmail.de>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * Copyright (C) 2010 by
+ * dufte <dufte@justmail.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Based on J. Lawler - BaseProtocol
@@ -44,7 +44,7 @@ std::map<std::string,int> SendTypingPacket::imindexes;
void SendTypingPacket::init(Client *client, string username) {
BuddyListEntry *entry = client->getBuddyList()->getBuddyByName(username);
-if(entry) {
+if (entry) {
setSid(entry->sid);
}
initIMIndex();
@@ -52,7 +52,7 @@ initIMIndex();
void SendTypingPacket::initIMIndex() {
string str_sid(sid);
-if( imindexes.count( str_sid ) < 1 )
+if ( imindexes.count( str_sid ) < 1 )
imindex = imindexes[str_sid] = 1;
else
imindex = ++imindexes[str_sid];
@@ -63,7 +63,7 @@ memcpy(this->sid,sid,16);
}
int SendTypingPacket::getPacketContent(char *buf) {
-if( imindex == 0 ) initIMIndex();
+if ( imindex == 0 ) initIMIndex();
int index = 0;
VariableValue val;