Some fixes
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include <misc/digest.h>
|
||||
#include <misc/rnd.h>
|
||||
#include <misc/timer.h>
|
||||
#include <misc/strobf.h>
|
||||
#include <bbcode/bbcodes.h>
|
||||
|
||||
namespace fs = std::experimental::filesystem;
|
||||
@@ -4130,6 +4131,7 @@ CommandResult ConnectedClient::handleCommandBanTriggerList(ts::Command &cmd) {
|
||||
CMD_RESET_IDLE;
|
||||
CMD_CHK_AND_INC_FLOOD_POINTS(25);
|
||||
CACHED_PERM_CHECK(permission::b_client_ban_trigger_list, 1, true);
|
||||
|
||||
CMD_REQ_PARM("banid");
|
||||
|
||||
auto record = serverInstance->banManager()->findBanById(this->getServerId(), cmd["banid"]);
|
||||
@@ -6199,7 +6201,7 @@ CommandResult ConnectedClient::handleCommandMusicBotCreate(Command& cmd) {
|
||||
if(config::license->isPremium())
|
||||
return {findError("music_limit_reached"), ""};
|
||||
else
|
||||
return {findError("music_limit_reached"), "You reached the server music bot limit. You could increase this limit by extend your server with a premium license."};
|
||||
return {findError("music_limit_reached"), strobf("You reached the server music bot limit. You could increase this limit by extend your server with a premium license.").string()};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user