diff --git a/code/modules/admin/sql_notes.dm b/code/modules/admin/sql_notes.dm index ab14a73e799..fe9aeeeb2c5 100644 --- a/code/modules/admin/sql_notes.dm +++ b/code/modules/admin/sql_notes.dm @@ -12,7 +12,8 @@ proc/add_note(target_ckey, notetext, timestamp, adminckey, logged = 1) log_game("SQL ERROR obtaining ckey from notes table. Error : \[[err]\]\n") return if(!query_find_ckey.NextRow()) - usr << "[new_ckey] has not been seen before, you can only add notes to unknown players." + usr << "[new_ckey] has not been seen before, you can only add notes to known players." + return else target_ckey = new_ckey var/target_sql_ckey = sanitizeSQL(target_ckey) @@ -114,7 +115,6 @@ proc/show_note(target_ckey, index, linkless = 0) if(!linkless) output = navbar if(target_ckey) - world << "target_ckey: [target_ckey]" var/DBQuery/query_get_notes = dbcon.NewQuery("SELECT id, timestamp, notetext, adminckey, last_editor, server FROM [format_table_name("notes")] WHERE ckey = '[target_ckey]'") if(!query_get_notes.Execute()) var/err = query_get_notes.ErrorMsg() @@ -138,7 +138,6 @@ proc/show_note(target_ckey, index, linkless = 0) output += " Last edit by [last_editor] (Click here to see edit log)" output += "
[notetext]
" else if(index) - world << "index: [index]" var/index_ckey var/search output += "
\[Add Note\]
" @@ -150,10 +149,6 @@ proc/show_note(target_ckey, index, linkless = 0) search = "^\[^\[:alpha:\]\]" else search = "^[index]" - world << "search: [search]" - if(!search) - world << "null search" - return var/DBQuery/query_list_notes = dbcon.NewQuery("SELECT DISTINCT ckey FROM [format_table_name("notes")] WHERE ckey REGEXP '[search]'") if(!query_list_notes.Execute()) var/err = query_list_notes.ErrorMsg() @@ -161,7 +156,6 @@ proc/show_note(target_ckey, index, linkless = 0) return while(query_list_notes.NextRow()) index_ckey = query_list_notes.item[1] - world << "index_ckey: [index_ckey]" output += "[index_ckey]
" else output += "
\[Add Note\]
" diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 5bfd15f4c67..6b5dfce04f7 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -996,7 +996,6 @@ //Player Notes else if(href_list["addnote"]) var/target_ckey = href_list["addnote"] - world << "addnote: [target_ckey]" add_note(target_ckey) else if(href_list["addnoteempty"])