Adding a player to the watchlist adds a note as well (#22544)

* Watchlist

* Secret note
This commit is contained in:
KorPhaeron
2017-01-02 09:09:05 -05:00
committed by AnturK
parent 010f305ee2
commit 40d347b2de

View File

@@ -36,6 +36,8 @@
if(browse)
watchlist_show(target_sql_ckey)
add_note(target_ckey, "Added to Watchlist - [reason]", null, usr.ckey, 0, null, 1)
/client/proc/watchlist_remove(target_ckey, browse = 0)
var/target_sql_ckey = sanitizeSQL(target_ckey)
var/DBQuery/query_watchdel = dbcon.NewQuery("DELETE FROM [format_table_name("watch")] WHERE ckey = '[target_sql_ckey]'")