Skip to content

Commit

Permalink
Merge pull request #480 from geominorai/v1.x
Browse files Browse the repository at this point in the history
Include server ID in Native_SBReportPlayer

Co-authored-by: geominorai <geominorai@users.noreply.github.com>
  • Loading branch information
rumblefrog and geominorai authored Jun 13, 2018
2 parents 9a37e21 + b432fb6 commit 695080a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/addons/sourcemod/scripting/sbpp_main.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2356,7 +2356,7 @@ public int Native_SBReportPlayer(Handle plugin, int numParams)
char[] sQuery = new char[512 + (iReasonLen * 2 + 1)];

Format(sQuery, 512 + (iReasonLen * 2 + 1), "INSERT INTO %s_submissions (`submitted`, `modid`, `SteamId`, `name`, `email`, `reason`, `ip`, `subname`, `sip`, `archiv`, `server`)"
... "VALUES ('%d', 0, '%s', '%s', '%s', '%s', '%s', '%s', '%s', 0, 0)", DatabasePrefix, iTime, sTAuth, sTEscapedName, sRAuth, sEscapedReason, sRIP, sREscapedName, sTIP);
... "VALUES ('%d', 0, '%s', '%s', '%s', '%s', '%s', '%s', '%s', 0, '%d')", DatabasePrefix, iTime, sTAuth, sTEscapedName, sRAuth, sEscapedReason, sRIP, sREscapedName, sTIP, (serverID != -1) ? serverID : 0);

DataPack ForwardPack = new DataPack();

Expand Down

0 comments on commit 695080a

Please sign in to comment.