Changeset - dc1228b5bd50
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-11-13 17:31:47
hanzz.k@gmail.com
use instead of
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/mysqlbackend.cpp
Show inline comments
 
@@ -442,13 +442,13 @@ bool MySQLBackend::getUser(const std::string &barejid, UserInfo &user) {
 
			user.password = StorageBackend::decryptPassword(user.password, CONFIG_STRING(m_config, "database.encryption_key"));
 
		}
 
	}
 

	
 
	if (!CONFIG_STRING(m_config, "database.vip_statement").empty()) {
 
		std::string query = CONFIG_STRING(m_config, "database.vip_statement");
 
		boost::replace_all(query, "$jid", barejid);
 
		boost::replace_all(query, "$barejid", barejid);
 
		LOG4CXX_INFO(logger, "Executing '" << query << "' to find out if user " << barejid << " is VIP");
 
		if (exec(query)) {
 
			MYSQL_RES *result = mysql_store_result(&m_conn);
 
			if (result) {
 
				LOG4CXX_INFO(logger, "User " << barejid << " is VIP");
 
				user.vip = 1;
0 comments (0 inline, 0 general)