Some fixes

This commit is contained in:
WolverinDEV
2019-09-14 12:06:48 +02:00
parent 709d2c0f5d
commit 2ae00f07cd
18 changed files with 198 additions and 156 deletions
@@ -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()};
}