Browse Source

Tweak of column names and Event Strings.

master
MagicBot 2 years ago
parent
commit
cec70b3b64
  1. 2
      src/engine/db/handlers/dbAccountHandler.java
  2. 2
      src/engine/gameManager/DevCmdManager.java
  3. 3
      src/engine/net/client/handlers/LoginToGameServerMsgHandler.java

2
src/engine/db/handlers/dbAccountHandler.java

@ -49,7 +49,7 @@ public class dbAccountHandler extends dbHandlerBase { @@ -49,7 +49,7 @@ public class dbAccountHandler extends dbHandlerBase {
public void WRITE_ADMIN_LOG(String adminName, String logEntry) {
prepareCallable("INSERT INTO dyn_admin_log(`DateTime`, `Account`, `Event`)"
prepareCallable("INSERT INTO dyn_admin_log(`dateTime`, `charName`, `eventString`)"
+ " VALUES (?, ?, ?)");
setTimeStamp(1, System.currentTimeMillis());
setString(2, adminName);

2
src/engine/gameManager/DevCmdManager.java

@ -204,7 +204,7 @@ public enum DevCmdManager { @@ -204,7 +204,7 @@ public enum DevCmdManager {
+ ") '";
logString += cmd + ' ' + argString + '\'';
Logger.info( logString);
DbManager.AccountQueries.WRITE_ADMIN_LOG(pcName, cmd + " " + argString);
DbManager.AccountQueries.WRITE_ADMIN_LOG(pcName, "COMMAND: " + cmd + " " + argString);
// execute command;
try {

3
src/engine/net/client/handlers/LoginToGameServerMsgHandler.java

@ -115,7 +115,8 @@ public class LoginToGameServerMsgHandler extends AbstractClientMsgHandler { @@ -115,7 +115,8 @@ public class LoginToGameServerMsgHandler extends AbstractClientMsgHandler {
// Log Admin Login Event
if (pc.getAccount().status.equals(Enum.AccountStatus.ADMIN))
DbManager.AccountQueries.WRITE_ADMIN_LOG(pc.getCombinedName(), "ADMIN LOGIN EVENT");
DbManager.AccountQueries.WRITE_ADMIN_LOG(pc.getCombinedName(), "ADMIN LOGIN");
DbManager.AccountQueries.SET_ACCOUNT_LOGIN(sessionInfo.getAccount(), sessionInfo.getPlayerCharacter().getName(), origin.getClientIpAddress(), sessionInfo.getMachineID());
return true;
}

Loading…
Cancel
Save