mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Moves various things to the new DBCore (#21544)
``` - server: "Changed the synthsprites to use the new DBCore" - server: "Changed the MalfAI to use the new DBCore" - server: "Changed the Alien Whitelists to use the new DBCore" - server: "Changed the Requests Console to use the new DBCore" - server: "Changed the Contracts Uplink to use the new DBCore" - server: "Changed the Admin Ranks to use the new DBCore" - server: "Changed the Job Bans to use the new DBCore" - server: "Changed the Tickets to use the new DBCore" - server: "Changed the Create Command Report to use the new DBCore" - server: "Changed the WebInterface interconnect to use the new DBCore" - server: "Changed the CCIA Recorder to use the new DBCore" - server: "Changed the IPCTags to use the new DBCore" - server: "Changed the Main Menu Poll-Check to use the new DBCore" - server: "Changed the Client-Procs to use the new DBCore" ``` --------- Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
@@ -7,16 +7,17 @@
|
||||
/datum/event/ccia_general_notice/start()
|
||||
..()
|
||||
|
||||
if (!establish_db_connection(GLOB.dbcon))
|
||||
LOG_DEBUG("CCIA Autoamtic General Notice - Could not establish database connection")
|
||||
if (!SSdbcore.Connect())
|
||||
LOG_DEBUG("CCIA Automatic General Notice - Could not establish database connection")
|
||||
return
|
||||
var/DBQuery/query = GLOB.dbcon.NewQuery("SELECT SQL_NO_CACHE title, message FROM ss13_ccia_general_notice_list WHERE deleted_at IS NULL AND automatic = 1 ORDER BY RAND() LIMIT 1;")
|
||||
var/datum/db_query/query = SSdbcore.NewQuery("SELECT SQL_NO_CACHE title, message FROM ss13_ccia_general_notice_list WHERE deleted_at IS NULL AND automatic = 1 ORDER BY RAND() LIMIT 1;")
|
||||
query.Execute()
|
||||
if (query.NextRow())
|
||||
reporttitle = query.item[1]
|
||||
reportbody = query.item[2]
|
||||
reportbody += "\n\n- CCIAAMS, [commstation_name()]"
|
||||
announce = 1
|
||||
qdel(query)
|
||||
|
||||
/datum/event/ccia_general_notice/announce()
|
||||
if(announce)
|
||||
|
||||
Reference in New Issue
Block a user