Merge pull request #7793 from Elron103/pull-requests
Core/Calendar: Add TwoSide Interaction configuration option for Calendar...
This commit is contained in:
@@ -431,7 +431,7 @@ void WorldSession::HandleCalendarEventInvite(WorldPacket& recvData)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_player->GetTeam() != team)
|
if (_player->GetTeam() != team && !sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_CALENDAR))
|
||||||
{
|
{
|
||||||
SendCalendarCommandResult(CALENDAR_ERROR_NOT_ALLIED);
|
SendCalendarCommandResult(CALENDAR_ERROR_NOT_ALLIED);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -655,6 +655,7 @@ void World::LoadConfigSettings(bool reload)
|
|||||||
m_int_configs[CONFIG_REALM_ZONE] = ConfigMgr::GetIntDefault("RealmZone", REALM_ZONE_DEVELOPMENT);
|
m_int_configs[CONFIG_REALM_ZONE] = ConfigMgr::GetIntDefault("RealmZone", REALM_ZONE_DEVELOPMENT);
|
||||||
|
|
||||||
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_ACCOUNTS] = ConfigMgr::GetBoolDefault("AllowTwoSide.Accounts", true);
|
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_ACCOUNTS] = ConfigMgr::GetBoolDefault("AllowTwoSide.Accounts", true);
|
||||||
|
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_CALENDAR]= ConfigMgr::GetBoolDefault("AllowTwoSide.Interaction.Calendar", false);
|
||||||
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHAT] = ConfigMgr::GetBoolDefault("AllowTwoSide.Interaction.Chat", false);
|
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHAT] = ConfigMgr::GetBoolDefault("AllowTwoSide.Interaction.Chat", false);
|
||||||
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL] = ConfigMgr::GetBoolDefault("AllowTwoSide.Interaction.Channel", false);
|
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL] = ConfigMgr::GetBoolDefault("AllowTwoSide.Interaction.Channel", false);
|
||||||
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP] = ConfigMgr::GetBoolDefault("AllowTwoSide.Interaction.Group", false);
|
m_bool_configs[CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP] = ConfigMgr::GetBoolDefault("AllowTwoSide.Interaction.Group", false);
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ enum WorldBoolConfigs
|
|||||||
CONFIG_GRID_UNLOAD,
|
CONFIG_GRID_UNLOAD,
|
||||||
CONFIG_STATS_SAVE_ONLY_ON_LOGOUT,
|
CONFIG_STATS_SAVE_ONLY_ON_LOGOUT,
|
||||||
CONFIG_ALLOW_TWO_SIDE_ACCOUNTS,
|
CONFIG_ALLOW_TWO_SIDE_ACCOUNTS,
|
||||||
|
CONFIG_ALLOW_TWO_SIDE_INTERACTION_CALENDAR,
|
||||||
CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHAT,
|
CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHAT,
|
||||||
CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL,
|
CONFIG_ALLOW_TWO_SIDE_INTERACTION_CHANNEL,
|
||||||
CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP,
|
CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP,
|
||||||
|
|||||||
@@ -1209,6 +1209,14 @@ Warden.BanDuration = 86400
|
|||||||
|
|
||||||
AllowTwoSide.Accounts = 1
|
AllowTwoSide.Accounts = 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# AllowTwoSide.Interaction.Calendar
|
||||||
|
# Description: Allow calendar invites between factions.
|
||||||
|
# Default: 0 - (Disabled)
|
||||||
|
# 1 - (Enabled)
|
||||||
|
|
||||||
|
AllowTwoSide.Interaction.Calendar = 0
|
||||||
|
|
||||||
#
|
#
|
||||||
# AllowTwoSide.Interaction.Chat
|
# AllowTwoSide.Interaction.Chat
|
||||||
# Description: Allow say chat between factions.
|
# Description: Allow say chat between factions.
|
||||||
|
|||||||
Reference in New Issue
Block a user