Beispiel #1
0
AP_MSG_HANDLER_METHOD(ChatModule, ChatWindow_OpenForLocation)
{
  if (chats_.Find(pMsg->hChat) != 0) { throw ApException(LOG_CONTEXT, "ChatWindow=" ApHandleFormat " already exists", ApHandlePrintf(pMsg->hChat)); }

  ChatWindow* pChat = NewChat(pMsg->hChat);
  if (pChat == 0) { throw ApException(LOG_CONTEXT, "NewChat failed"); }

  pChat->Open();
  pChat->AttachToLocation(pMsg->hLocation);

  pMsg->apStatus = ApMessage::Ok;
}
Beispiel #2
0
void OmegleProto::SignOn(void*)
{
	SYSTEMTIME t;
	GetLocalTime(&t);
	debugLogA("[%d.%d.%d] Using Omegle Protocol %s", t.wDay, t.wMonth, t.wYear, __VERSION_STRING_DOTS);

	ScopedLock s(signon_lock_);

	int old_status = m_iStatus;
	m_iStatus = m_iDesiredStatus;
	ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);

	setDword("LogonTS", (DWORD)time(NULL));
	ClearChat();
	OnJoinChat(0, false);

	if (getByte(OMEGLE_KEY_AUTO_CONNECT, 0))
		NewChat();

	//ToggleStatusMenuItems(true);
}
Beispiel #3
0
void OmegleProto::NewChatWorker(void*)
{
	NewChat();
}