Accept updated purple-hangouts primary prompt (#236)

This commit is contained in:
Scott Sweeny 2017-08-09 00:12:24 -05:00 committed by vitalyster
parent 4abce367d6
commit 8cfb921087
1 changed files with 2 additions and 1 deletions

View File

@ -1606,7 +1606,8 @@ void * requestInput(const char *title, const char *primary,const char *secondary
((PurpleRequestInputCb) ok_cb)(user_data, "Authorization denied.");
return NULL;
}
else if (boost::starts_with(primaryString, "https://accounts.google.com/o/oauth2/auth")) {
else if (boost::starts_with(primaryString, "https://accounts.google.com/o/oauth2/auth") ||
boost::starts_with(primaryString, "https://www.youtube.com/watch?v=hlDhp-eNLMU")) {
LOG4CXX_INFO(logger, "prpl-hangouts oauth request");
np->handleMessage(np->m_accounts[account], np->adminLegacyName, std::string("Please visit the following link and authorize this application: ") + primaryString, "");
np->handleMessage(np->m_accounts[account], np->adminLegacyName, std::string("Reply with code provided by Google: "));