From 94af89d0a28979ce7998d740805646fa12c0dc2d Mon Sep 17 00:00:00 2001 From: Mloc-Argent Date: Sat, 6 Jul 2013 22:16:01 +0100 Subject: [PATCH] Fixes #2091 Adds missing topic() code for page selection on player notes, properly alphabeticalizes. Signed-off-by: Mloc-Argent --- code/modules/admin/admin.dm | 4 ++-- code/modules/admin/topic.dm | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 4292c9a14fa..9219b847414 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,7 +210,7 @@ var/global/floorIsLava = 0 for(var/index = 1, index <= number_pages, index++) if(index == page) dat += "" - dat += "[index] " + dat += "[index] " if(index == page) dat += "" diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 5e7a2493bdc..2164b02d165 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) + if("list") + PlayerNotesPage(text2num(href_list["index"])) return