allows adding notes and watchlist for unknown ckeys

This commit is contained in:
Jordie0608
2015-10-18 20:48:13 +11:00
parent 65fdbd9bfd
commit 47dfb46f58
2 changed files with 6 additions and 8 deletions
+3 -4
View File
@@ -13,10 +13,9 @@
log_game("SQL ERROR obtaining ckey from player table. Error : \[[err]\]\n")
return
if(!query_find_ckey.NextRow())
usr << "<span class='redtext'>[new_ckey] has not been seen before, you can only add notes to known players.</span>"
return
else
target_ckey = new_ckey
if(alert(usr, "[new_ckey] has not been seen before, are you sure you want to add them to the watchlist?", "Unknown ckey", "Yes", "No", "Cancel") != "Yes")
return
target_ckey = new_ckey
var/target_sql_ckey = sanitizeSQL(target_ckey)
if(!notetext)
notetext = input(usr,"Write your Note","Add Note") as message