You can now request player notes through IRC bots.

This commit is contained in:
Ccomp5950
2014-05-02 06:07:43 -05:00
parent d6717177ad
commit 0c0af93601
2 changed files with 49 additions and 1 deletions

View File

@@ -152,3 +152,16 @@ datum/admins/proc/notes_gethtml(var/ckey)
log_admin("[key_name(usr)] deleted one of [key]'s notes.")
del info
/proc/show_player_info_irc(var/key as text)
var/dat = " Info on [key]%0D%0A"
var/savefile/info = new("data/player_saves/[copytext(key, 1, 2)]/[key]/info.sav")
var/list/infos
info >> infos
if(!infos)
dat = "No information found on the given key."
else
for(var/datum/player_info/I in infos)
dat += "[I.content]%0D%0Aby [I.author] ([I.rank]) on [I.timestamp]%0D%0A%0D%0A"
return dat