summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_misc.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-09-20 00:02:33 +0200
committerYehonal <yehonal.azeroth@gmail.com>2017-09-20 00:02:33 +0200
commitf63cb5056890e3ed7a7c8eee1ce2088030080bea (patch)
tree35ef18e1e5d2d62543c55463ba684a61e03592cb /src/scripts/Commands/cs_misc.cpp
parentc592aca10372735e06cfa7a1157e5c599fa87f14 (diff)
parent56e8ef0d46aad9d5e6b8d9070b60b955e99d819d (diff)
Merge branch 'master' of https://github.com/azerothcore/azerothcore-wotlk
Diffstat (limited to 'src/scripts/Commands/cs_misc.cpp')
-rw-r--r--src/scripts/Commands/cs_misc.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/scripts/Commands/cs_misc.cpp b/src/scripts/Commands/cs_misc.cpp
index f7eb61d7d8..edf4851914 100644
--- a/src/scripts/Commands/cs_misc.cpp
+++ b/src/scripts/Commands/cs_misc.cpp
@@ -688,12 +688,16 @@ public:
}
else if (map->IsDungeon())
{
- // pussywizard: prevent unbinding normal player's perm bind by just summoning him >_>
- if (!target->GetSession()->GetSecurity())
+ // Allow GM to summon players or only other GM accounts inside instances.
+ if (!sWorld->getBoolConfig(CONFIG_INSTANCE_GMSUMMON_PLAYER))
{
- handler->PSendSysMessage("Only GMs can be summoned to an instance!");
- handler->SetSentErrorMessage(true);
- return false;
+ // pussywizard: prevent unbinding normal player's perm bind by just summoning him >_>
+ if (!target->GetSession()->GetSecurity())
+ {
+ handler->PSendSysMessage("Only GMs can be summoned to an instance!");
+ handler->SetSentErrorMessage(true);
+ return false;
+ }
}
Map* destMap = target->GetMap();