[MIRROR] reimplements attack and player logs (#12553)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-19 23:03:53 +01:00
committed by GitHub
co-authored by Kashargul
parent bb90e792ca
commit 99afe463dc
50 changed files with 411 additions and 270 deletions
@@ -67,7 +67,6 @@
if(!client) return 0
if(href_list["privacy_poll"])
establish_db_connection()
if(!SSdbcore.IsConnected())
return
var/voted = 0
-6
View File
@@ -1,6 +1,5 @@
/mob/new_player/proc/handle_privacy_poll()
establish_db_connection()
if(!SSdbcore.IsConnected())
return
var/voted = 0
@@ -47,7 +46,6 @@
var/optiontext
/mob/new_player/proc/handle_player_polling()
establish_db_connection()
if(SSdbcore.IsConnected())
var/isadmin = 0
if(src.client && check_rights_for(src.client, R_HOLDER))
@@ -81,7 +79,6 @@
/mob/new_player/proc/poll_player(var/pollid = -1)
if(pollid == -1) return
establish_db_connection()
if(SSdbcore.IsConnected())
var/datum/db_query/select_query = SSdbcore.NewQuery("SELECT starttime, endtime, question, polltype, multiplechoiceoptions FROM erro_poll_question WHERE id = [pollid]")
@@ -343,7 +340,6 @@
if(!isnum(pollid) || !isnum(optionid))
return
establish_db_connection()
if(SSdbcore.IsConnected())
var/datum/db_query/select_query = SSdbcore.NewQuery("SELECT starttime, endtime, question, polltype, multiplechoiceoptions FROM erro_poll_question WHERE id = [pollid] AND Now() BETWEEN starttime AND endtime")
@@ -415,7 +411,6 @@
if(!isnum(pollid) || !istext(replytext))
return
establish_db_connection()
if(SSdbcore.IsConnected())
var/datum/db_query/select_query = SSdbcore.NewQuery("SELECT starttime, endtime, question, polltype FROM erro_poll_question WHERE id = [pollid] AND Now() BETWEEN starttime AND endtime")
@@ -474,7 +469,6 @@
if(!isnum(pollid) || !isnum(optionid))
return
establish_db_connection()
if(SSdbcore.IsConnected())
var/datum/db_query/select_query = SSdbcore.NewQuery("SELECT starttime, endtime, question, polltype FROM erro_poll_question WHERE id = [pollid] AND Now() BETWEEN starttime AND endtime")