<commit_before>/*
Copyright (c) 2014-2017 AscEmu Team <http://www.ascemu.org/>
This file is released under the MIT license. See README-MIT for more information.
*/

#include "StdAfx.h"
#include "Storage/MySQLDataStore.hpp"
#include "Map/MapMgr.h"

//.vehicle ejectpassenger
bool ChatHandler::HandleVehicleEjectPassengerCommand(const char* args, WorldSession* session)
{
    uint32 seat = 0;
    std::stringstream ss(args);
    ss >> seat;
    if (ss.fail())
    {
        RedSystemMessage(session, "You need to specify a seat number.");
        return false;
    }
    Player* p = session->GetPlayer();
    if (p->GetTargetGUID() == 0)
    {
        RedSystemMessage(session, "You need to select a vehicle.");
        return false;
    }<commit_msg>Attemp to resolve CID 53117 Use of untrusted scalar value (TAINTED_SCALAR)<commit_after>/*
Copyright (c) 2014-2017 AscEmu Team <http://www.ascemu.org/>
This file is released under the MIT license. See README-MIT for more information.
*/

#include "StdAfx.h"
#include "Storage/MySQLDataStore.hpp"
#include "Map/MapMgr.h"

//.vehicle ejectpassenger
bool ChatHandler::HandleVehicleEjectPassengerCommand(const char* args, WorldSession* session)
{
    uint32 seat;
    std::stringstream ss(args);
    ss >> seat;
    if (ss.fail())
    {
        RedSystemMessage(session, "You need to specify a seat number.");
        return false;
    }
    Player* p = session->GetPlayer();
    if (p->GetTargetGUID() == 0)
    {
        RedSystemMessage(session, "You need to select a vehicle.");
        return false;
    }
{'fraction_non_alphanumeric': 0.12411575562700965, 'fraction_numerical': 0.0180064308681672, 'mean_word_length': 3.3342618384401113, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6603403', 'n_tokens_mistral': 515, 'n_tokens_neox': 491, 'n_words': 145}