diff options
| author | George Hazan <ghazan@miranda.im> | 2022-08-11 19:00:57 +0300 | 
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2022-08-11 19:00:57 +0300 | 
| commit | 95ecee334d06657df2ae0799ac824df88b1675d6 (patch) | |
| tree | 4206dc622525820e05d1392afb5648d1bd10e88b /protocols/JabberG/src | |
| parent | 4f99191f837b1fdb6a84622fa2d2cee6278ce91b (diff) | |
code cleaning
Diffstat (limited to 'protocols/JabberG/src')
| -rw-r--r-- | protocols/JabberG/src/jabber_voip.cpp | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_voip.cpp b/protocols/JabberG/src/jabber_voip.cpp index 2262466334..9843bbfce9 100644 --- a/protocols/JabberG/src/jabber_voip.cpp +++ b/protocols/JabberG/src/jabber_voip.cpp @@ -472,7 +472,7 @@ bool CJabberProto::VOIPCallIinitiate(MCONTACT hContact)  	if (!m_voipSession.IsEmpty()) {  		VOIPTerminateSession();  		MessageBoxA(0, "Terminated", NULL, 0); -		return 0; +		return false;  	}  	if (!m_bEnableVOIP) @@ -480,7 +480,7 @@ bool CJabberProto::VOIPCallIinitiate(MCONTACT hContact)  	CMStringA jid(ptrA(getUStringA(hContact, "jid")));  	if (jid == "") -		return 0; +		return false;  	ptrA szResource(GetBestResourceName(jid));  	if (szResource)  		jid = MakeJid(jid, szResource); @@ -488,7 +488,7 @@ bool CJabberProto::VOIPCallIinitiate(MCONTACT hContact)  	CMStringA question(FORMAT, "Call %s?\r\n"  		"It will disclose IP address to the peer and his server", jid.c_str());  	if (MessageBoxA(0, question.c_str(), "Outgoing call", MB_YESNO | MB_ICONQUESTION) != IDYES) -		return 0; +		return false;  	unsigned char tmp[16];  	Utils_GetRandom(tmp, sizeof(tmp)); @@ -498,7 +498,8 @@ bool CJabberProto::VOIPCallIinitiate(MCONTACT hContact)  	m_voipPeerJid = jid.c_str();  	VOIPCreatePipeline(); -	return 0; + +	return true;  }  bool CJabberProto::VOIPCallAccept(const TiXmlElement *jingleNode, const char *from)  | 
