Fixes proc arguments

This commit is contained in:
Firecage
2015-07-15 23:52:35 +02:00
parent 6a0faa4ff6
commit 4688c2c969
832 changed files with 3721 additions and 3664 deletions
+4 -4
View File
@@ -26,11 +26,11 @@
popup.open()
/datum/admins/proc/notes_show(var/ckey)
/datum/admins/proc/notes_show(ckey)
usr << browse("<head><title>Player Notes</title></head><body>[notes_gethtml(ckey)]</body>","window=player_notes;size=700x400")
/datum/admins/proc/notes_gethtml(var/ckey)
/datum/admins/proc/notes_gethtml(ckey)
var/savefile/notesfile = new(NOTESFILE)
if(!notesfile) return "<span class='warning'>Error: Cannot access [NOTESFILE]</span>"
if(ckey)
@@ -53,7 +53,7 @@
//handles adding notes to the end of a ckey's buffer
//originally had seperate entries such as var/by to record who left the note and when
//but the current bansystem is a heap of dung.
/proc/notes_add(var/ckey, var/note, var/lognote = 0)
/proc/notes_add(ckey, note, lognote = 0)
if(!ckey)
ckey = ckey(input(usr,"Who would you like to add notes for?","Enter a ckey",null) as text|null)
if(!ckey) return
@@ -75,7 +75,7 @@
return
//handles removing entries from the buffer, or removing the entire directory if no start_index is given
/proc/notes_remove(var/ckey, var/start_index, var/end_index)
/proc/notes_remove(ckey, start_index, end_index)
var/savefile/notesfile = new(NOTESFILE)
var/admin_msg
if(!notesfile) return