diff options
Diffstat (limited to 'protocols/Twitter')
-rw-r--r-- | protocols/Twitter/src/chat.cpp | 2 | ||||
-rw-r--r-- | protocols/Twitter/src/contacts.cpp | 2 | ||||
-rw-r--r-- | protocols/Twitter/src/proto.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index 96ad8af6da..5a03d293a7 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -198,7 +198,7 @@ void TwitterProto::SetChatStatus(int status) {
// Add all friends to contact list
for(HANDLE hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
- if( db_get_b(hContact, m_szModuleName, "ChatRoom", 0))
+ if( isChatRoom(hContact))
continue;
DBVARIANT uid,nick;
diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index da9ce0d79c..763ce1f699 100644 --- a/protocols/Twitter/src/contacts.cpp +++ b/protocols/Twitter/src/contacts.cpp @@ -214,7 +214,7 @@ bool TwitterProto::IsMyContact(HANDLE hContact,bool include_chat) if(proto && strcmp(m_szModuleName,proto) == 0) {
if(include_chat)
return true;
- return db_get_b(hContact,m_szModuleName,"ChatRoom",0) == 0;
+ return !isChatRoom(hContact);
}
else return false;
}
diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index 5a54c199e3..659fee4fd2 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -502,7 +502,7 @@ void TwitterProto::UpdateSettings() for(HANDLE hContact = db_find_first(m_szModuleName); hContact; ) {
HANDLE hNext = db_find_next(hContact, m_szModuleName);
- if(db_get_b(hContact,m_szModuleName,"ChatRoom",0))
+ if(isChatRoom(hContact))
CallService(MS_DB_CONTACT_DELETE,reinterpret_cast<WPARAM>(hContact),0);
hContact = hNext;
}
|