Merge pull request #1457 from CIB/master

Admins will now be notified if a reported player logs in.
This commit is contained in:
SkyMarshal
2012-07-08 12:15:19 -07:00
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -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"
+4
View File
@@ -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()