mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Add /logout chat command
This commit is contained in:
parent
b758f45a9f
commit
0ef0a9e028
3 changed files with 25 additions and 0 deletions
|
|
@ -650,6 +650,12 @@ void GameScreen::sendChatMessage(game::GameHandler& gameHandler) {
|
|||
// Convert to lowercase
|
||||
for (char& c : command) c = std::tolower(c);
|
||||
|
||||
if (command == "logout") {
|
||||
core::Application::getInstance().logoutToLogin();
|
||||
chatInputBuffer[0] = '\0';
|
||||
return;
|
||||
}
|
||||
|
||||
std::string emoteText = rendering::Renderer::getEmoteText(command);
|
||||
if (!emoteText.empty()) {
|
||||
// Play the emote animation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue