Changeset - c301557e2f4c
[Not reviewed]
0 1 0
Vitaly Takmazov - 7 years ago 2018-11-06 19:58:50
vitalyster@gmail.com
libpurple: do not update purple settings with empty values
1 file changed with 9 insertions and 7 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -424,16 +424,18 @@ class SpectrumNetworkPlugin : public NetworkPlugin {
 
			}
 
			else if (protocol == "prpl-steam-mobile") {
 
				std::string token;
 
				if (getUserToken(user, STEAM_ACCESS_TOKEN, token)) {
 
				getUserToken(user, STEAM_ACCESS_TOKEN, token);
 
				if (!token.empty()) {
 
					purple_account_set_string_wrapped(account, "access_token", token.c_str());
 
				}
 
			}
 
            else if (protocol == "prpl-eionrobb-discord") {
 
                std::string token;
 
                if (getUserToken(user, DISCORD_ACCESS_TOKEN, token)) {
 
                    purple_account_set_string_wrapped(account, "token", token.c_str());
 
                }
 
            }
 
			else if (protocol == "prpl-eionrobb-discord") {
 
				std::string token;
 
				getUserToken(user, DISCORD_ACCESS_TOKEN, token);
 
				if (!token.empty()) {
 
					purple_account_set_string_wrapped(account, "token", token.c_str());
 
				}
 
			}
 

	
 
			setDefaultAccountOptions(account);
 

	
0 comments (0 inline, 0 general)