diff options
Diffstat (limited to 'plugins/Boltun/src/actionQueue.cpp')
-rw-r--r-- | plugins/Boltun/src/actionQueue.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Boltun/src/actionQueue.cpp b/plugins/Boltun/src/actionQueue.cpp index 4da1b56178..d0ba9adae8 100644 --- a/plugins/Boltun/src/actionQueue.cpp +++ b/plugins/Boltun/src/actionQueue.cpp @@ -87,9 +87,9 @@ void UpdateTimer() static bool NotifyTyping(HANDLE hContact)
{
- int res = db_get_b(hContact, "SRMsg", "SupportTyping", 2);
+ int res = DBGetContactSettingByte(hContact, "SRMsg", "SupportTyping", 2);
if (res == 2)
- res = db_get_b(NULL, "SRMsg", "DefaultTyping", 1);
+ res = DBGetContactSettingByte(NULL, "SRMsg", "DefaultTyping", 1);
return res != 0;
}
@@ -238,10 +238,11 @@ void DoAnswer(HANDLE hContact, const TalkBot::MessageInfo *info, bool sticky = f void AnswerToContact(HANDLE hContact, const TCHAR* messageToAnswer)
{
- if (Config.TalkWarnContacts && db_get_b(hContact, BOLTUN_KEY, DB_CONTACT_WARNED, FALSE) == FALSE)
+ if (Config.TalkWarnContacts && DBGetContactSettingByte(hContact, BOLTUN_KEY,
+ DB_CONTACT_WARNED, FALSE) == FALSE)
{
DoAnswer(hContact, new TalkBot::MessageInfo((const TCHAR*)Config.WarnText), true);
- db_set_b(hContact, BOLTUN_KEY, DB_CONTACT_WARNED, TRUE);
+ DBWriteContactSettingByte(hContact, BOLTUN_KEY, DB_CONTACT_WARNED, TRUE);
}
else
DoAnswer(hContact, bot->Reply(hContact, messageToAnswer, false));
|