polserver/pol-core/pol/help.cpp
turleypol 21577d8e5b
Clang Tidy concat namespaces (#855)
* tidy

* Automated clang-tidy change: modernize-concat-nested-namespaces

* compile test

* fix namespace

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-17 10:30:21 +01:00

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