mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-07-15 17:52:49 +01:00
SQL notes fix
Now fetches actual data, so that it doesn't return null-strings. And also checks if a client is still present or not.
This commit is contained in:
@@ -21,8 +21,10 @@
|
||||
|
||||
if(!IP || !CID)
|
||||
var/DBQuery/initquery = dbcon.NewQuery("SELECT ip, computerid FROM erro_player WHERE ckey = '[ckey]'")
|
||||
IP = initquery.item[1]
|
||||
CID = initquery.item[2]
|
||||
initquery.Execute()
|
||||
if(initquery.NextRow())
|
||||
IP = initquery.item[1]
|
||||
CID = initquery.item[2]
|
||||
|
||||
var/querycontents
|
||||
if(IP && CID)
|
||||
|
||||
@@ -2774,10 +2774,12 @@
|
||||
else
|
||||
var/IP
|
||||
var/CID
|
||||
var/client/C = directory[key]
|
||||
if(C)
|
||||
IP = C.address
|
||||
CID = C.computer_id
|
||||
if(directory[key])
|
||||
var/client/C = directory[key]
|
||||
if(C)
|
||||
IP = C.address
|
||||
CID = C.computer_id
|
||||
|
||||
notes_add_sql(key, add, usr, IP, CID)
|
||||
|
||||
show_player_info(key)
|
||||
|
||||
Reference in New Issue
Block a user