maybe it'll work

This commit is contained in:
Seris02
2020-01-24 16:33:20 +08:00
parent 4888e1522a
commit 10ef39d1e3

View File

@@ -2878,6 +2878,8 @@
return
if(SSdbcore.Connect())
var/datum/DBQuery/query_get_mentor = SSdbcore.NewQuery("SELECT id FROM [format_table_name("mentor")] WHERE ckey = '[ckey]'")
if(!query_get_mentor.warn_execute())
return
if(query_get_mentor.NextRow())
to_chat(usr, "<span class='danger'>[ckey] is already a mentor.</span>")
return