aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorRoc13x <roc13x@gmail.com>2018-04-18 11:32:37 +0100
committerAokromes <Aokromes@users.noreply.github.com>2018-04-18 12:32:37 +0200
commite27d7c8e8f45f87fc58886c9e7a8caf4b4c61fa1 (patch)
treea7d0676f971c848226aad56473b78c5731f1e962 /src/server/scripts
parent95475fed2e18cbba57ea7731924e28f2d80e76dd (diff)
Core/Accounts: prevent existing account ban from being updated (#21836)
Cherry-picked from fbb2b165
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_ban.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_ban.cpp b/src/server/scripts/Commands/cs_ban.cpp
index d59ed9c1407..5c9c89ab7eb 100644
--- a/src/server/scripts/Commands/cs_ban.cpp
+++ b/src/server/scripts/Commands/cs_ban.cpp
@@ -232,6 +232,9 @@ public:
}
handler->SetSentErrorMessage(true);
return false;
+ case BAN_EXISTS:
+ handler->PSendSysMessage(LANG_BAN_EXISTS);
+ break;
}
return true;