summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/MraProto.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-03-06 02:08:17 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-03-06 02:08:17 +0000
commit381ae22157acdbdc1d8b2760b8f58c5d1d0aba37 (patch)
treeb1706363c1419e398b40dce57e4a75d46cdfd065 /protocols/MRA/src/MraProto.cpp
parent522586d7b8f7274fad2fe58c2615fc0d06618fcd (diff)
MRA:
* Unused code cleaup git-svn-id: http://svn.miranda-ng.org/main/trunk@8424 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/MraProto.cpp')
-rw-r--r--protocols/MRA/src/MraProto.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/MRA/src/MraProto.cpp b/protocols/MRA/src/MraProto.cpp
index f6eea6903a..54f9c5efe7 100644
--- a/protocols/MRA/src/MraProto.cpp
+++ b/protocols/MRA/src/MraProto.cpp
@@ -421,7 +421,7 @@ int CMraProto::SendMsg(MCONTACT hContact, int flags, const char *lpszMessage)
int iRet = 0;
if (flags & PREF_UNICODE)
- lpwszMessage = (LPWSTR)(lpszMessage + lstrlenA(lpszMessage)+1 );
+ lpwszMessage = (LPWSTR)(lpszMessage + lstrlenA(lpszMessage) + 1);
else if (flags & PREF_UTF)
lpwszMessage = mir_utf8decodeT(lpszMessage);
else
@@ -590,11 +590,11 @@ int CMraProto::SetAwayMsg(int m_iStatus, const TCHAR* msg)
int CMraProto::UserIsTyping(MCONTACT hContact, int type)
{
- if (!m_bLoggedIn || !hContact || type == PROTOTYPE_SELFTYPING_OFF)
+ if (!m_bLoggedIn || m_iStatus == ID_STATUS_INVISIBLE || !hContact || type == PROTOTYPE_SELFTYPING_OFF)
return 1;
CMStringA szEmail;
- if ( MraGetContactStatus(hContact) != ID_STATUS_OFFLINE && m_iStatus != ID_STATUS_INVISIBLE)
+ if ( MraGetContactStatus(hContact) != ID_STATUS_OFFLINE)
if ( mraGetStringA(hContact, "e-mail", szEmail))
if ( MraMessage(FALSE, hContact, 0, MESSAGE_FLAG_NOTIFY, szEmail, L" ", NULL, 0))
return 0;