Ofer notification

This commit is contained in:
CHIEFSOFT\ameye
2023-12-07 12:42:08 -05:00
parent ad0f99af27
commit 52fd762ea4
2 changed files with 43 additions and 0 deletions
@@ -169,6 +169,8 @@ const PGresult *res = pgsql_query("SELECT jo.id AS offer_id,jo.added,j.title,jo.
CVars xy;
if ( load_db_record(xy, "SELECT id AS member_id, uid AS member_uid, 'alert.svg' AS icon "
" FROM members WHERE LOWER(username) = LOWER('%s') ",rec["rec_username"].c_str()) > 0 ){
xy["msg"] = "You have received a new offer waiting for you to start!";
xy["msg"].set_valid(true);
plan_notification(xy, out);
}