Core/DBLayer: Restore pinfo ban info output

This commit is contained in:
leak
2012-03-25 21:22:53 +02:00
parent fa1d3f305b
commit ffbee169f4
2 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
ALTER TABLE `account_banned`
CHANGE `bandate` `bandate` INT(10) UNSIGNED DEFAULT 0 NOT NULL,
CHANGE `unbandate` `unbandate` INT(10) UNSIGNED DEFAULT 0 NOT NULL;
ALTER TABLE `ip_banned`
CHANGE `ip` `ip` VARCHAR(15) CHARSET utf8 COLLATE utf8_general_ci DEFAULT '127.0.0.1' NOT NULL,
CHANGE `bandate` `bandate` INT(10) UNSIGNED NOT NULL,
CHANGE `unbandate` `unbandate` INT(10) UNSIGNED NOT NULL;

View File

@@ -395,8 +395,8 @@ bool ChatHandler::HandlePInfoCommand(const char* args)
if (result2)
{
Field* fields = result->Fetch();
banTime = fields[1].GetBool() ? 0 : fields[0].GetUInt64();
Field* fields = result2->Fetch();
banTime = int64(fields[1].GetBool() ? 0 : fields[0].GetUInt32());
bannedby = fields[2].GetString();
banreason = fields[3].GetString();
}