Fixing some bugs for 1.4.19b1

This commit is contained in:
WolverinDEV 2020-08-18 22:03:05 +02:00
parent 59ec412fea
commit f80f629496
2 changed files with 3 additions and 4 deletions

View File

@ -7,10 +7,6 @@
#define tsclientmusic std::shared_ptr<ts::server::MusicClient>
namespace ts {
constexpr static auto kMaxPokeMessageLength = 100;
constexpr static auto kMaxRequestTalkPowerMessageLength = 50;
constexpr static auto kMaxAfkMessageLength = 256;
typedef uint16_t ServerId;
typedef int32_t OptionalServerId;
constexpr auto EmptyServerId = (OptionalServerId) -1;

View File

@ -968,6 +968,9 @@ inline std::deque<std::string> map_entry(std::string key, teamspeak::GroupType t
result.insert(result.end(), mapped_general.begin(), mapped_general.end());
}
if(result.empty())
result.push_back("x_" + key);
for(auto& entry : result)
entry = "i_needed_modify_power_" + entry.substr(2);
return result;