diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-27 23:43:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-27 23:43:06 +0300 |
commit | e441a31e9f912fc8e9244d16560565559b1924d2 (patch) | |
tree | e9d47703f0e56bb5745e7e4e842d14ce989fe86d /plugins/Boltun/src | |
parent | 91811190c158e4ff97cc94ef93415c12ddf738ed (diff) |
end of manual experiments with CList/NotOnList
Diffstat (limited to 'plugins/Boltun/src')
-rw-r--r-- | plugins/Boltun/src/boltun.cpp | 4 | ||||
-rw-r--r-- | plugins/Boltun/src/stdafx.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Boltun/src/boltun.cpp b/plugins/Boltun/src/boltun.cpp index e50af48380..deb08f133c 100644 --- a/plugins/Boltun/src/boltun.cpp +++ b/plugins/Boltun/src/boltun.cpp @@ -181,7 +181,7 @@ static bool BoltunAutoChat(MCONTACT hContact) return true;
}
- if ((db_get_b(hContact, "CList", "NotOnList", 0) == 1) && Config.TalkWithNotInList)
+ if (!Contact_OnList(hContact) && Config.TalkWithNotInList)
return true;
if (g_plugin.getByte(hContact, DB_CONTACT_BOLTUN_AUTO_CHAT, FALSE) == TRUE)
@@ -491,7 +491,7 @@ static int OnContactMenuPrebuild(WPARAM hContact, LPARAM) {
INT_PTR flags = CallProtoService(GetContactProto(hContact), PS_GETCAPS, PFLAGNUM_1);
- bool bEnable = blInit && !db_get_b(hContact, "CList", "NotOnList", 0) && (flags & PF1_IM) != 0;
+ bool bEnable = blInit && Contact_OnList(hContact) && (flags & PF1_IM) != 0;
Menu_ShowItem(hMenuItemAutoChat, bEnable);
Menu_ShowItem(hMenuItemNotToChat, bEnable);
Menu_ShowItem(hMenuItemStartChatting, bEnable);
diff --git a/plugins/Boltun/src/stdafx.h b/plugins/Boltun/src/stdafx.h index 18153fec0e..7b452aa982 100644 --- a/plugins/Boltun/src/stdafx.h +++ b/plugins/Boltun/src/stdafx.h @@ -34,6 +34,7 @@ #include <newpluginapi.h>
#include <m_clist.h>
+#include <m_contacts.h>
#include <m_protosvc.h>
#include <m_database.h>
#include <m_genmenu.h>
|