From 5e4286f1becfb5ce52372f882a51ae8ea6f6ef6d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Jul 2013 14:23:07 +0000 Subject: - Jabber resource fix: in LAST_SEEN mode resource is skipped when no sessions were available; - code cleanup; - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@5429 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/JabberG/src/jabber_thread.cpp') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 7a89eae152..5ab49961be 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1176,7 +1176,7 @@ void CJabberProto::OnProcessMessage(HXML node, ThreadData* info) const TCHAR *szJid = xmlGetAttrValue(addressNode, _T("jid")); if (szJid) { size_t cbLen = _tcslen(szMessage) + 1000; - TCHAR* p = (TCHAR*)alloca(sizeof(TCHAR) * cbLen); + TCHAR *p = (TCHAR*)alloca(sizeof(TCHAR) * cbLen); mir_sntprintf(p, cbLen, TranslateT("Message redirected from: %s\r\n%s"), from, szMessage); szMessage = p; from = szJid; @@ -1615,9 +1615,9 @@ void CJabberProto::OnProcessPresence(HXML node, ThreadData* info) } BOOL bSelfPresence = FALSE; - TCHAR szBareFrom[ JABBER_MAX_JID_LEN ]; + TCHAR szBareFrom[JABBER_MAX_JID_LEN]; JabberStripJid(from, szBareFrom, SIZEOF(szBareFrom)); - TCHAR szBareOurJid[ JABBER_MAX_JID_LEN ]; + TCHAR szBareOurJid[JABBER_MAX_JID_LEN]; JabberStripJid(info->fullJID, szBareOurJid, SIZEOF(szBareOurJid)); if ( !_tcsicmp(szBareFrom, szBareOurJid)) -- cgit v1.2.3