diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-02 09:08:58 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-02 09:08:58 +0000 |
commit | 34c687bef4bad10ec583710e1b07ba8575003949 (patch) | |
tree | 8eeab6b66535dab1a6fec867bdc3370444331b37 /protocols/VKontakte/src/vk_proto.cpp | |
parent | 114f83d5d8a73b3f1435e09b1d91aff843e4ce15 (diff) |
VKontakte: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11213 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index b895974728..37d9016602 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -272,7 +272,7 @@ void CVkProto::InitMenus() int CVkProto::OnPreBuildContactMenu(WPARAM hContact, LPARAM)
{
- bool bisFriend = getByte(hContact, "Auth", -1)==0;
+ bool bisFriend = (getByte(hContact, "Auth", -1) == 0);
bool bisBroadcast = !(CMString(db_get_tsa(hContact, m_szModuleName, "AudioUrl")).IsEmpty());
Menu_ShowItem(g_hContactMenuItems[CMI_VISITPROFILE], !isChatRoom(hContact));
Menu_ShowItem(g_hContactMenuItems[CMI_ADDASFRIEND], !bisFriend && !isChatRoom(hContact));
@@ -649,7 +649,7 @@ int CVkProto::UserIsTyping(MCONTACT hContact, int type) debugLogA("CVkProto::UserIsTyping");
if (PROTOTYPE_SELFTYPING_ON == type) {
LONG userID = getDword(hContact, "ID", -1);
- if ((userID == -1)||(!IsOnline()))
+ if (userID == -1 || !IsOnline())
return 1;
if (m_iMarkMessageReadOn == markOnTyping)
|