From 9ae607a958da370c9cad4c5ba9c1888a8f8ad04f Mon Sep 17 00:00:00 2001 From: d3athrow Date: Thu, 25 Jul 2013 19:51:20 -0500 Subject: [PATCH] Fixes #104 --- code/modules/admin/admin.dm | 5 +++-- code/modules/admin/topic.dm | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 4292c9a14fa..7c4c799063a 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -186,7 +186,7 @@ var/global/floorIsLava = 0 dat += "No notes found." else dat += "" - sortList(note_keys) + note_keys = sortList(note_keys) // Display the notes on the current page var/number_pages = note_keys.len / PLAYER_NOTES_ENTRIES_PER_PAGE @@ -210,13 +210,14 @@ var/global/floorIsLava = 0 for(var/index = 1, index <= number_pages, index++) if(index == page) dat += "" - dat += "[index] " + dat += "[index] " if(index == page) dat += "" usr << browse(dat, "window=player_notes;size=400x400") + /datum/admins/proc/player_has_info(var/key as text) var/savefile/info = new("data/player_saves/[copytext(key, 1, 2)]/[key]/info.sav") var/list/infos diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 130a1aaa350..62f3855cf8a 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2464,4 +2464,6 @@ switch(href_list["notes"]) if("show") show_player_info(ckey) - return + if("list") + PlayerNotesPage(text2num(href_list["index"])) + return \ No newline at end of file