summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/services.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-28 20:39:37 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-28 20:39:37 +0000
commit92beff959051eec8d60e4e146aa3d8a13bee9fea (patch)
treeb06ceb3079028d38f6d0f2481a5ab62b05e83e80 /protocols/Xfire/src/services.cpp
parent8ef64da1b7cc3ef5026ab2dc80e7e0fd88971d59 (diff)
XFire: Reformat sources
git-svn-id: http://svn.miranda-ng.org/main/trunk@11134 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/services.cpp')
-rw-r--r--protocols/Xfire/src/services.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/protocols/Xfire/src/services.cpp b/protocols/Xfire/src/services.cpp
index a5c2f7d3d6..70a141f6b5 100644
--- a/protocols/Xfire/src/services.cpp
+++ b/protocols/Xfire/src/services.cpp
@@ -1,5 +1,5 @@
/*
- * Plugin of miranda IM(ICQ) for Communicating with users of the XFire Network.
+ * Plugin of miranda IM(ICQ) for Communicating with users of the XFire Network.
*
* Copyright (C) 2010 by
* dufte <dufte@justmail.de>
@@ -21,7 +21,7 @@
* Based on J. Lawler - BaseProtocol
* Herbert Poul/Beat Wolf - xfirelib
*
- * Miranda ICQ: the free icq client for MS Windows
+ * Miranda ICQ: the free icq client for MS Windows
* Copyright (C) 2000-2008 Richard Hughes, Roland Rabien & Tristan Van de Vreede
*
*/
@@ -34,12 +34,12 @@ BOOL IsContactMySelf(std::string buddyusername) {
DBVARIANT dbv;
//nur wenn option aktiv, sonst immer FALSE
- if (!db_get_b(NULL,protocolname,"skipmyself",0))
+ if (!db_get_b(NULL, protocolname, "skipmyself", 0))
return FALSE;
- if (!db_get(NULL,protocolname,"login",&dbv))
+ if (!db_get(NULL, protocolname, "login", &dbv))
{
- if (!lstrcmpiA( dbv.pszVal, buddyusername.c_str() ))
+ if (!lstrcmpiA(dbv.pszVal, buddyusername.c_str()))
{
db_free(&dbv);
return TRUE;
@@ -48,15 +48,15 @@ BOOL IsContactMySelf(std::string buddyusername) {
}
else
return FALSE;
-
+
return FALSE;
}
//liefert vollendateipfad vom eigenen avatar zurück, wenn definiert
-INT_PTR GetMyAvatar(WPARAM wparam,LPARAM lparam) {
+INT_PTR GetMyAvatar(WPARAM wparam, LPARAM lparam) {
DBVARIANT dbv;
- if (!db_get(NULL,protocolname,"MyAvatarFile",&dbv))
+ if (!db_get(NULL, protocolname, "MyAvatarFile", &dbv))
{
strncpy((char*)wparam, dbv.pszVal, (int)lparam);
db_free(&dbv);
@@ -67,14 +67,14 @@ INT_PTR GetMyAvatar(WPARAM wparam,LPARAM lparam) {
}
//liefert vollendateipfad vom eigenen avatar zurück, wenn definiert
-int mBotNotify(WPARAM wparam,LPARAM lparam) {
-
+int mBotNotify(WPARAM wparam, LPARAM lparam) {
+
if (wparam) {
- CallService(MBOT_TRIGGER,(WPARAM)"xfireingame",1);
+ CallService(MBOT_TRIGGER, (WPARAM)"xfireingame", 1);
}
else
{
- CallService(MBOT_TRIGGER,(WPARAM)"xfireingame",0);
+ CallService(MBOT_TRIGGER, (WPARAM)"xfireingame", 0);
}
return 0;