/** @file * * @par History */ #include "tildecmd.h" #include #include #include #include "../clib/logfacility.h" #include "../plib/systemstate.h" #include "spells.h" #include namespace Pol { namespace Core { bool process_tildecommand( Network::Client* client, const std::string& textbuf ) { if ( textbuf.size() > 3 && textbuf[1] == 'I' && textbuf[2] == 'N' ) { INFO_PRINT_TRACE( 6 ) << "INVOKE: " << textbuf << "\n"; u16 spellnum = static_cast( strtoul( textbuf.c_str() + 3, nullptr, 0 ) ); do_cast( client, spellnum ); return true; } return false; } } // namespace Core } // namespace Pol