Changeset - afba34111e41
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2013-02-24 11:09:51
hanzz.k@gmail.com
Load skype buddies from database if it's possible
1 file changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
backends/skype/skypedb.cpp
Show inline comments
 
@@ -124,16 +124,15 @@ bool loadBuddies(SkypePlugin *np, const std::string &db_path, std::string &user,
 
	}
 
	else {
 
		sqlite3_stmt *stmt;
 
		PREP_STMT(stmt, "select skypename, aliases, fullname, displayname, mood_text from Contacts;");
 
// 		aliases, fullname, 
 
		PREP_STMT(stmt, "select skypename, displayname, mood_text from Contacts;");
 
		if (stmt) {
 
			BEGIN(stmt);
 
			int ret2;
 
			while((ret2 = sqlite3_step(stmt)) == SQLITE_ROW) {
 
				std::string buddy = (const char *) sqlite3_column_text(stmt, 0);
 
				std::string alias = (const char *) sqlite3_column_text(stmt, 1);
 
				std::string fullname = (const char *) sqlite3_column_text(stmt, 2);
 
				std::string displayname = (const char *) sqlite3_column_text(stmt, 3);
 
				std::string mood_text = (const char *) sqlite3_column_text(stmt, 4);
 
				std::string mood_text = (const char *) sqlite3_column_text(stmt, 2);
 

	
 
				if (alias.empty()) {
 
					alias = displayname;
0 comments (0 inline, 0 general)