From ac6e68c2637854b4604485a3533433b874de5eaf Mon Sep 17 00:00:00 2001 From: watcher Date: Wed, 26 Oct 2016 13:01:49 +0300 Subject: deprecated is moved to https://github.com/miranda-ng/deprecated --- tools/_deprecated/Yahoo/src/ignore.cpp | 66 ---------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 tools/_deprecated/Yahoo/src/ignore.cpp (limited to 'tools/_deprecated/Yahoo/src/ignore.cpp') diff --git a/tools/_deprecated/Yahoo/src/ignore.cpp b/tools/_deprecated/Yahoo/src/ignore.cpp deleted file mode 100644 index 5770a570e1..0000000000 --- a/tools/_deprecated/Yahoo/src/ignore.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/* - * $Id$ - * - * myYahoo Miranda Plugin - * - * Authors: Gennady Feldman (aka Gena01) - * Laurent Marechal (aka Peorth) - * - * This code is under GPL and is based on AIM, MSN and Miranda source code. - * I want to thank Robert Rainwater and George Hazan for their code and support - * and for answering some of my questions during development of this plugin. - */ -#include "stdafx.h" -#include "ignore.h" - -const YList* CYahooProto::GetIgnoreList(void) -{ - if (m_id < 1) - return NULL; - - return yahoo_get_ignorelist(m_id); -} - -void CYahooProto::IgnoreBuddy(const char *buddy, int ignore) -{ - if (m_id < 1) - return; - - yahoo_ignore_buddy(m_id, buddy, ignore); - //yahoo_get_list(m_id); -} - - -int CYahooProto::BuddyIgnored(const char *who) -{ - const YList *l = GetIgnoreList(); - while (l != NULL) { - yahoo_buddy *b = (yahoo_buddy *) l->data; - - if (mir_strcmpi(b->id, who) == 0) { - //LOG(("User '%s' on our Ignore List. Dropping Message.", who)); - return 1; - } - l = l->next; - } - - return 0; -} - -void CYahooProto::ext_got_ignore(YList * igns) -{ - YList *l = igns; - - LOG(("[ext_yahoo_got_ignore] Got Ignore List")); - - while (l != NULL) { - yahoo_buddy *b = (yahoo_buddy *) l->data; - - debugLogA("[ext_yahoo_got_ignore] Buddy: %s", b->id); - - l = l->next; - } - - debugLogA("[ext_yahoo_got_ignore] End Of Ignore List"); -} - -- cgit v1.2.3