Corrected karma database connect error to more accurately explain the problem.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@45 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
only.lurking@gmail.com
2010-09-02 03:46:11 +00:00
parent bb5219f3d1
commit d21fb5dbc2
+1 -1
View File
@@ -6,7 +6,7 @@ mob/verb/check_karma()
var/DBConnection/dbcon = new()
dbcon.Connect("dbi:mysql:[SQL_DB]:[SQL_ADDRESS]:[SQL_PORT]","[SQL_LOGIN]","[SQL_PASS]")
if(!dbcon.IsConnected())
usr << "\red Unable to connect to karma database. This is very bad and you should report it to TLE soon!<br>"
usr << "\red Unable to connect to karma database. This error can occur if your host has failed to set up an SQL database or improperly configured its login credentials.<br>"
return
else
var/DBQuery/query = dbcon.NewQuery("SELECT karma FROM karmatotals WHERE byondkey='[src.key]'")