mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* tidy * Automated clang-tidy change: modernize-concat-nested-namespaces * compile test * fix namespace --------- Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
28 lines
594 B
C++
28 lines
594 B
C++
/** @file
|
|
*
|
|
* @par History
|
|
*/
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "../bscript/eprog.h"
|
|
#include "../clib/refptr.h"
|
|
#include "../plib/systemstate.h"
|
|
#include "mobile/charactr.h"
|
|
#include "network/client.h"
|
|
#include "network/pktin.h"
|
|
#include "scrstore.h"
|
|
|
|
|
|
namespace Pol::Core
|
|
{
|
|
void handle_help( Network::Client* client, PKTIN_9B* /*msg*/ )
|
|
{
|
|
ref_ptr<Bscript::EScriptProgram> prog =
|
|
find_script( "misc/help", true, Plib::systemstate.config.cache_interactive_scripts );
|
|
if ( prog.get() != nullptr )
|
|
{
|
|
client->chr->start_script( prog.get(), false );
|
|
}
|
|
}
|
|
} // namespace Pol::Core
|