bool CAutoplayer::DoChat(void) { if ((p_autoplayer_functions->f$chat() == 0) || (_the_chat_message == NULL)) return false; if (!IsChatAllowed()) return false; // Converting the result of the $chat-function to a string. // Will be ignored, if we already have an unhandled chat message. RegisterChatMessage(p_autoplayer_functions->f$chat()); return p_casino_interface->EnterChatMessage(CString(_the_chat_message)); }
bool CAutoplayer::DoChat(void) { assert(p_function_collection->EvaluateAutoplayerFunction(k_standard_function_chat) != 0); if (!IsChatAllowed()) { write_log(preferences.debug_autoplayer(), "[AutoPlayer] No chat, because chat turned off.\n"); return false; } // Converting the result of the $chat-function to a string. // Will be ignored, if we already have an unhandled chat message. RegisterChatMessage(p_function_collection->EvaluateAutoplayerFunction(k_standard_function_chat)); if (_the_chat_message == NULL) { write_log(preferences.debug_autoplayer(), "[AutoPlayer] No chat, because wrong chat code. Please read: ""Available chat messages"" .\n"); return false ; } return p_casino_interface->EnterChatMessage(CString(_the_chat_message)); }
bool CAutoplayer::DoChat(void) { if (!IsChatAllowed()) { write_log(prefs.debug_autoplayer(), "[AutoPlayer] No chat, because chat turned off.\n"); return false; } if ((p_autoplayer_functions->f$chat() == 0) || (_the_chat_message == NULL)) { write_log(prefs.debug_autoplayer(), "[AutoPlayer] No chat, because no chat message.\n"); return false; } // Converting the result of the $chat-function to a string. // Will be ignored, if we already have an unhandled chat message. RegisterChatMessage(p_autoplayer_functions->f$chat()); return p_casino_interface->EnterChatMessage(CString(_the_chat_message)); }