mirror of
https://github.com/mangosfour/server.git
synced 2026-01-02 01:37:05 +00:00
[8965] Implement quit command for close RA connection.
World only in RA comandline.
This commit is contained in:
parent
b6cd243cef
commit
a2bb655501
12 changed files with 37 additions and 6 deletions
|
|
@ -667,6 +667,7 @@ ChatCommand * ChatHandler::getCommandTable()
|
|||
{ "flusharenapoints",SEC_ADMINISTRATOR, false, &ChatHandler::HandleFlushArenaPointsCommand, "", NULL },
|
||||
{ "repairitems", SEC_GAMEMASTER, true, &ChatHandler::HandleRepairitemsCommand, "", NULL },
|
||||
{ "waterwalk", SEC_GAMEMASTER, false, &ChatHandler::HandleWaterwalkCommand, "", NULL },
|
||||
{ "quit", SEC_CONSOLE, true, &ChatHandler::HandleQuitCommand, "", NULL },
|
||||
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -498,6 +498,7 @@ class ChatHandler
|
|||
bool HandleFlushArenaPointsCommand(const char *args);
|
||||
bool HandleRepairitemsCommand(const char* args);
|
||||
bool HandleWaterwalkCommand(const char* args);
|
||||
bool HandleQuitCommand(const char* args);
|
||||
|
||||
//! Development Commands
|
||||
bool HandleSaveAllCommand(const char* args);
|
||||
|
|
|
|||
|
|
@ -780,7 +780,8 @@ enum MangosStrings
|
|||
LANG_ACCOUNT_LIST_BAR = 1012,
|
||||
LANG_ACCOUNT_LIST_LINE = 1013,
|
||||
LANG_ACCOUNT_LIST_EMPTY = 1014,
|
||||
// Room for more level 4 1015-1099 not used
|
||||
LANG_QUIT_WRONG_USE_ERROR = 1015,
|
||||
// Room for more level 4 1016-1099 not used
|
||||
|
||||
// Level 3 (continue)
|
||||
LANG_ACCOUNT_SETADDON = 1100,
|
||||
|
|
|
|||
|
|
@ -238,7 +238,6 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
|
|||
ReadMovementInfo(recv_data, &movementInfo);
|
||||
/*----------------*/
|
||||
|
||||
recv_data.rpos(recv_data.wpos()); // prevent warnings spam
|
||||
if (!MaNGOS::IsValidMapCoord(movementInfo.x, movementInfo.y, movementInfo.z, movementInfo.o))
|
||||
{
|
||||
recv_data.rpos(recv_data.wpos()); // prevent warnings spam
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue