Skip to content

Commit 0710f8c

Browse files
Fix error with addUserID
Fix a error with MSync.addUSerID which would cause a error if the nickname variable was empty
1 parent a73d88e commit 0710f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/msync/server/sv_mysql.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ end
148148
Returns: nothing
149149
]]
150150
function MSync.mysql.addUserID(steamid, nickname)
151-
MSync.log(MSYNC_DBG_DEBUG, "Exec: addUserID. Param.: " .. steamid .. " " .. nickname)
151+
MSync.log(MSYNC_DBG_DEBUG, "Exec: addUserID. Param.: " .. steamid .. " " .. (nickname or ""))
152152
if not MSync.DBServer then MSync.log(MSYNC_DBG_DEBUG, "No Database connected yet. Please connect to a Database to be able to create users."); return end;
153153
if not string.match( steamid, "^STEAM_[0-1]:[0-1]:[0-9]+$" ) then return end;
154154

0 commit comments

Comments
 (0)