From cc6abc9eed963a2659c121ddec136f1ab4256535 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 25 Jun 2015 19:22:17 +0000 Subject: - Set wparam and lParam to 0 as default arg in CallService and others, to simplify some code git-svn-id: http://svn.miranda-ng.org/main/trunk@14385 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/proto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Yahoo/src/proto.cpp') diff --git a/protocols/Yahoo/src/proto.cpp b/protocols/Yahoo/src/proto.cpp index 2c2d9a42ea..faab974481 100644 --- a/protocols/Yahoo/src/proto.cpp +++ b/protocols/Yahoo/src/proto.cpp @@ -117,7 +117,7 @@ MCONTACT CYahooProto::AddToList(int flags, PROTOSEARCHRESULT *psr) char *id = psr->flags & PSR_UNICODE ? mir_utf8encodeW((wchar_t*)psr->id.t) : mir_utf8encode((char*)psr->id.t); MCONTACT hContact = getbuddyH(id); if (hContact != NULL) { - if (db_get_b(hContact, "CList", "NotOnList", 0)) { + if (db_get_b(hContact, "CList", "NotOnList")) { debugLogA("[YahooAddToList] Temporary Buddy:%s already on our buddy list", id); //return 0; } @@ -256,7 +256,7 @@ int CYahooProto::AuthDeny(MEVENT hdbe, const TCHAR *reason) debugLogA("Rejecting buddy:%s msg: %s", who, u_reason); reject(myid, who, getWord(hContact, "yprotoid", 0), u_reason); - CallService(MS_DB_CONTACT_DELETE, hContact, 0); + CallService(MS_DB_CONTACT_DELETE, hContact); } } return 0; -- cgit v1.2.3