mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Adds ip and cid to banning panel ban search (#32801)
For kevinz000 because he managed to lose a ban and couldn't find it with ckey or ackey somehow. No indexes because ORDER BY indexing is too finicky and having something like 8 indexes just for this wouldn't be worth the slowdown.
This commit is contained in:
@@ -181,12 +181,14 @@
|
||||
log_admin("[key_name(usr)] has triggered an event. ([E.name])")
|
||||
return
|
||||
|
||||
else if(href_list["dbsearchckey"] || href_list["dbsearchadmin"])
|
||||
else if(href_list["dbsearchckey"] || href_list["dbsearchadmin"] || href_list["dbsearchip"] || href_list["dbsearchcid"])
|
||||
var/adminckey = href_list["dbsearchadmin"]
|
||||
var/playerckey = href_list["dbsearchckey"]
|
||||
var/ip = href_list["dbsearchip"]
|
||||
var/cid = href_list["dbsearchcid"]
|
||||
var/page = href_list["dbsearchpage"]
|
||||
|
||||
DB_ban_panel(playerckey, adminckey, page)
|
||||
DB_ban_panel(playerckey, adminckey, ip, cid, page)
|
||||
return
|
||||
|
||||
else if(href_list["dbbanedit"])
|
||||
|
||||
Reference in New Issue
Block a user