From 6f06cd42b8e56aaae2be853a31d73d0115a39c2a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Apr 2015 15:45:30 +0300 Subject: Add chat command for create chat room (incomplete). New chat command: /chatroom NAME --- src/actions/commands.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index a02a97498..76d94886c 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -869,4 +869,16 @@ impHandler(commandHomunEmote) #endif } +impHandler(createPublicChatRoom) +{ +#ifdef EATHENA_SUPPORT + if (event.args.empty()) + return false; + chatHandler->createChatRoom(event.args, "", 100, true); + return true; +#else + return false; +#endif +} + } // namespace Actions -- cgit v1.2.3-70-g09d2