mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Merge pull request #1457 from CIB/master
Admins will now be notified if a reported player logs in.
This commit is contained in:
@@ -78,6 +78,16 @@ client/proc/unhandled_reports()
|
||||
|
||||
return 0
|
||||
|
||||
// checks if the player has an unhandled report against him
|
||||
client/proc/is_reported()
|
||||
var/list/reports = load_reports()
|
||||
|
||||
for(var/datum/admin_report/N in reports)
|
||||
if(N.offender_key == src.key)
|
||||
return 1
|
||||
|
||||
return 0
|
||||
|
||||
// display only the reports that haven't been handled
|
||||
client/proc/display_admin_reports()
|
||||
set category = "Admin"
|
||||
|
||||
@@ -42,6 +42,10 @@
|
||||
|
||||
if(client.has_news())
|
||||
src << "<b><font color=blue>There are some unread <a href='?src=\ref[news_topic_handler];client=\ref[client];action=show_news'>news</a> for you! Please make sure to read all news, as they may contain important updates about roleplay rules or canon.</font></b>"
|
||||
if(client.unhandled_reports())
|
||||
src << "<b><font color=red>There are some unhandled <a href='?src=\ref[report_topic_handler];client=\ref[client];action=show_reports'>reports</a>.</font></b>"
|
||||
if(client.is_reported())
|
||||
log_admin("A player who has unhandled admin reports against him just logged in: [client.key]")
|
||||
|
||||
new_player_panel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user