diff options
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/action_ip_logger.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/scripts/World/action_ip_logger.cpp b/src/server/scripts/World/action_ip_logger.cpp index 8cc8652b3db..9d2aa868234 100644 --- a/src/server/scripts/World/action_ip_logger.cpp +++ b/src/server/scripts/World/action_ip_logger.cpp @@ -96,7 +96,6 @@ class AccountActionIpLogger : public AccountScript // We declare all the required variables uint32 playerGuid = accountId; - uint32 characterGuid = 0; std::string systemNote = "ERROR"; // "ERROR" is a placeholder here. We change it later. // With this switch, we change systemNote so that we have a more accurate phrasing of what type it is. @@ -141,7 +140,7 @@ class AccountActionIpLogger : public AccountScript PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_ALDL_IP_LOGGING); stmt->setUInt32(0, playerGuid); - stmt->setUInt32(1, characterGuid); + stmt->setUInt32(1, 0); stmt->setUInt8(2, aType); stmt->setUInt32(3, playerGuid); stmt->setString(4, systemNote.c_str()); @@ -152,7 +151,7 @@ class AccountActionIpLogger : public AccountScript PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_FACL_IP_LOGGING); stmt->setUInt32(0, playerGuid); - stmt->setUInt32(1, characterGuid); + stmt->setUInt32(1, 0); stmt->setUInt8(2, aType); stmt->setUInt32(3, playerGuid); stmt->setString(4, systemNote.c_str()); @@ -233,7 +232,7 @@ class CharacterActionIpLogger : public PlayerScript PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_CHAR_IP_LOGGING); stmt->setUInt32(0, playerGuid); - stmt->setUInt32(1, player->GetGUID().GetCounter()); + stmt->setUInt64(1, player->GetGUID().GetCounter()); stmt->setUInt8(2, aType); stmt->setString(3, currentIp.c_str()); // We query the ip here. stmt->setString(4, systemNote.c_str()); @@ -291,7 +290,7 @@ public: PreparedStatement* stmt2 = LoginDatabase.GetPreparedStatement(LOGIN_INS_ALDL_IP_LOGGING); stmt2->setUInt32(0, playerGuid); - stmt2->setUInt32(1, guid.GetCounter()); + stmt2->setUInt64(1, guid.GetCounter()); stmt2->setUInt8(2, aType); stmt2->setUInt32(3, playerGuid); stmt2->setString(4, systemNote.c_str()); |
