From 85bd008c039eb1d93894e94fba9d158a42a71a12 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Aug 2015 13:33:42 +0000 Subject: massive code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/services.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'protocols/Xfire/src/services.cpp') diff --git a/protocols/Xfire/src/services.cpp b/protocols/Xfire/src/services.cpp index fdb15d7e80..26903077fe 100644 --- a/protocols/Xfire/src/services.cpp +++ b/protocols/Xfire/src/services.cpp @@ -30,17 +30,16 @@ #include "baseProtocol.h" -BOOL IsContactMySelf(std::string buddyusername) { +BOOL IsContactMySelf(std::string buddyusername) +{ DBVARIANT dbv; //nur wenn option aktiv, sonst immer FALSE if (!db_get_b(NULL, protocolname, "skipmyself", 0)) return FALSE; - if (!db_get(NULL, protocolname, "login", &dbv)) - { - if (!mir_strcmpi(dbv.pszVal, buddyusername.c_str())) - { + if (!db_get(NULL, protocolname, "login", &dbv)) { + if (!mir_strcmpi(dbv.pszVal, buddyusername.c_str())) { db_free(&dbv); return TRUE; } @@ -64,15 +63,12 @@ INT_PTR GetMyAvatar(WPARAM wparam, LPARAM lparam) } //liefert vollendateipfad vom eigenen avatar zurück, wenn definiert -int mBotNotify(WPARAM wparam, LPARAM lparam) { - - if (wparam) { +int mBotNotify(WPARAM wparam, LPARAM) +{ + if (wparam) CallService(MBOT_TRIGGER, (WPARAM)"xfireingame", 1); - } else - { CallService(MBOT_TRIGGER, (WPARAM)"xfireingame", 0); - } return 0; } \ No newline at end of file -- cgit v1.2.3