From 8cfb9210876df3452e66fb6f8a626f3f6bfbadaa 2017-08-09 07:12:24 From: Scott Sweeny Date: 2017-08-09 07:12:24 Subject: [PATCH] Accept updated purple-hangouts primary prompt (#236) --- diff --git a/backends/libpurple/main.cpp b/backends/libpurple/main.cpp index b58e8d790b232aac92a2bb638be36b6b361e98ce..fcfd794068ae4c405c17f686c2cd79f67f16151e 100644 --- a/backends/libpurple/main.cpp +++ b/backends/libpurple/main.cpp @@ -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: "));