53 sLog.White(
"SlashService::Handle_SlashCmd()",
"size=%u", call.
tuple->
size());
54 call.
Dump(COMMAND__DUMP);
56 Call_SingleStringArg arg;
57 if (!arg.Decode(&call.
tuple)) {
58 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
68 _log( COMMAND__ERROR,
"%s: Client '%s' used a slash command but does not have Acct::Role::SLASH.",
GetName(), client->
GetName() );
69 throw CustomError (
"You need to have Acct::Role::SLASH to execute commands.");
int64 GetAccountRole() const
Dispatcher *const m_dispatch
#define _log(type, fmt,...)
PyResult Execute(Client *from, const char *msg)
PyCallable_Make_InnerDispatcher(SlashService) SlashService
const char * GetName() const
Advanced version of UserError that allows to send a full custom message.
#define is_log_enabled(type)
#define sLog
Evaluates to a NewLog instance.
#define codelog(type, fmt,...)
CommandDispatcher *const m_commandDispatch
const char * GetName() const
#define PyCallable_REG_CALL(c, m)
PyResult SlashCommand(Client *client, std::string command)
Dispatcher *const m_dispatch
void Dump(LogType type) const