Changeset - 61f2419ba4c8
[Not reviewed]
0 1 0
Jan Kaluza - 10 years ago 2015-12-27 19:32:42
jkaluza@redhat.com
Fix #57 - check that we are using MULTIPLECONTACT mode while removing twitter contacts
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
backends/twitter/TwitterPlugin.cpp
Show inline comments
 
@@ -305,6 +305,11 @@ void TwitterPlugin::handleBuddyRemovedRequest(const std::string &user, const std
 
		LOG4CXX_ERROR(logger, user << " is not connected to twitter!")
 
		return;
 
	}
 

	
 
	if (getTwitterMode(user) == MULTIPLECONTACT) {
 
		LOG4CXX_ERROR(logger, user << " not removing Twitter contact " << buddyName << ", because the mode is not MULTIPLECONTACT")
 
		return;
 
	}
 
	
 
	LOG4CXX_INFO(logger, user << " - Removing Twitter contact " << buddyName)
 
	tp->runAsThread(new DestroyFriendRequest(userdb[user].sessions, user, buddyName, 
0 comments (0 inline, 0 general)