From 97868ad421f8587ffedda5392ac0af2c3fecc7bb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Apr 2015 22:29:14 +0300 Subject: Add chat command for leave chat room. New chat command: /leaveroom --- src/actions/commands.cpp | 10 ++++++++++ src/actions/commands.h | 1 + 2 files changed, 11 insertions(+) (limited to 'src/actions') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 18206b9a3..04a69fddd 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -898,4 +898,14 @@ impHandler(joinChatRoom) #endif } +impHandler(leaveChatRoom) +{ +#ifdef EATHENA_SUPPORT + chatHandler->leaveChatRoom(); + return true; +#else + return false; +#endif +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index ef02a70eb..da3574a62 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -84,6 +84,7 @@ namespace Actions decHandler(commandHomunEmote); decHandler(createPublicChatRoom); decHandler(joinChatRoom); + decHandler(leaveChatRoom); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2