1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 07:37:45 +00:00

Added fmt for sendNotice and sendUrgent, have not ported appearances yet

This commit is contained in:
Mordred 2019-01-05 14:53:42 +01:00
parent 7f00c34f90
commit f7fa30101a

View file

@ -760,8 +760,18 @@ namespace Sapphire::Entity
uint8_t getSearchSelectClass() const; uint8_t getSearchSelectClass() const;
void sendNotice( const std::string& message ); void sendNotice( const std::string& message );
template< typename... Args >
void sendNotice( const std::string& message, const Args&... args )
{
sendNotice( fmt::format( message, args... ) );
}
void sendUrgent( const std::string& message ); void sendUrgent( const std::string& message );
template< typename... Args >
void sendUrgent( const std::string& message, const Args&... args )
{
sendUrgent( fmt::format( message, args... ) );
}
void sendDebug( const std::string& message ); void sendDebug( const std::string& message );