aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/HousingHandler.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-12-16 00:09:26 +0100
committerShauren <shauren.trinity@gmail.com>2025-12-16 00:09:26 +0100
commitbd2b12fa36830c6b12e124359f46ac974d554080 (patch)
treebf34422aeca361b8027256d53c80777865ae2933 /src/server/game/Handlers/HousingHandler.cpp
parentaf57aa29dcfc9f25dba794883f0180a22ce28133 (diff)
Core: Updated to 11.2.7HEADmaster
Diffstat (limited to 'src/server/game/Handlers/HousingHandler.cpp')
-rw-r--r--src/server/game/Handlers/HousingHandler.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/server/game/Handlers/HousingHandler.cpp b/src/server/game/Handlers/HousingHandler.cpp
new file mode 100644
index 00000000000..3c36b790f11
--- /dev/null
+++ b/src/server/game/Handlers/HousingHandler.cpp
@@ -0,0 +1,28 @@
+/*
+ * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "WorldSession.h"
+#include "HousingPackets.h"
+#include "Player.h"
+
+void WorldSession::HandleDeclineNeighborhoodInvites(WorldPackets::Housing::DeclineNeighborhoodInvites const& declineNeighborhoodInvites)
+{
+ if (declineNeighborhoodInvites.Allow)
+ GetPlayer()->SetPlayerFlagEx(PLAYER_FLAGS_EX_AUTO_DECLINE_NEIGHBORHOOD);
+ else
+ GetPlayer()->RemovePlayerFlagEx(PLAYER_FLAGS_EX_AUTO_DECLINE_NEIGHBORHOOD);
+}