From: Maxim Mamontov Date: Wed, 5 Jan 2011 15:36:35 +0000 (+0200) Subject: Косметичні виправлення X-Git-Tag: 2.407-rc3~206 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/26f0a7be9285009bcfbb743d61211be059ff8db8 Косметичні виправлення --- diff --git a/projects/stargazer/user.cpp b/projects/stargazer/user.cpp index b68c632a..e63d37d3 100644 --- a/projects/stargazer/user.cpp +++ b/projects/stargazer/user.cpp @@ -1158,7 +1158,6 @@ if (SendMessage(*msg)) if (store->AddMessage(msg, login)) { errorStr = store->GetStrError(); - STG_LOGGER & WriteServLog = GetStgLogger(); WriteServLog("Error adding message %s", errorStr.c_str()); WriteServLog("%s", store->GetStrError().c_str()); return -1; @@ -1179,7 +1178,6 @@ else if (store->AddMessage(msg, login)) { errorStr = store->GetStrError(); - STG_LOGGER & WriteServLog = GetStgLogger(); WriteServLog("Error adding message %s", errorStr.c_str()); WriteServLog("%s", store->GetStrError().c_str()); return -1; @@ -1266,7 +1264,11 @@ while (it != messages.end()) if (it->header.repeat < 0) { printfd(__FILE__, "DelMessage\n"); - store->DelMessage(it->header.id, login); + if (store->DelMessage(it->header.id, login)) + { + WriteServLog("Error deleting message: '%s'", store->GetStrError().c_str()); + printfd(__FILE__, "Error deleting message: '%s'\n", store->GetStrError().c_str()); + } messages.erase(it++); } else @@ -1279,7 +1281,8 @@ while (it != messages.end()) #endif if (store->EditMessage(*it, login)) { - printfd(__FILE__, "EditMessage Error %s\n", store->GetStrError().c_str()); + WriteServLog("Error modifying message: '%s'", store->GetStrError().c_str()); + printfd(__FILE__, "Error modifying message: '%s'\n", store->GetStrError().c_str()); } ++it; }