From 5fa42ce90f1933e4dcf732e24485320fb78de389 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 01:46:06 -0600 Subject: [PATCH] Fix LoginIP from erorr message removal --- common/database.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/database.cpp b/common/database.cpp index 48a0377b3..f3dacc9f1 100644 --- a/common/database.cpp +++ b/common/database.cpp @@ -201,8 +201,7 @@ bool Database::AddGMIP(char* ip_address, char* name) { void Database::LoginIP(uint32 AccountID, const char* LoginIP) { std::string query = StringFormat("INSERT INTO account_ip SET accid=%i, ip='%s' ON DUPLICATE KEY UPDATE count=count+1, lastused=now()", AccountID, LoginIP); - auto results = QueryDatabase(query); - if (!results.Success()) + QueryDatabase(query); } int16 Database::CheckStatus(uint32 account_id) {