Set auth_fb

This commit is contained in:
HanzZ 2011-11-06 12:47:13 +01:00
parent 02daddc0ce
commit 7cd4658101
2 changed files with 9 additions and 0 deletions

View file

@ -542,6 +542,10 @@ class SpectrumNetworkPlugin : public NetworkPlugin {
while (keys && keys[i] != NULL) {
std::string key = keys[i];
if (key == "fb_api_key" || key == "fb_api_secret") {
purple_account_set_bool(account, "auth_fb", TRUE);
}
PurplePlugin *plugin = purple_find_prpl(purple_account_get_protocol_id(account));
PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(plugin);
bool found = false;

View file

@ -319,6 +319,11 @@ void UserManager::handleSubscription(Swift::Presence::ref presence) {
return;
}
// Don't let RosterManager to handle presences for us
if (presence->getTo().getNode().empty()) {
return;
}
User *user = getUser(presence->getFrom().toBare().toString());
if (user) {