summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-04 15:45:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-04 15:45:30 +0300
commit6f06cd42b8e56aaae2be853a31d73d0115a39c2a (patch)
tree589d5d51b66018b6063bf954f90b96a3244b2e3d /src/actions
parent13b4a16c46983b786d31f6cf67632a3bd4e14b8f (diff)
downloadmv-6f06cd42b8e56aaae2be853a31d73d0115a39c2a.tar.gz
mv-6f06cd42b8e56aaae2be853a31d73d0115a39c2a.tar.bz2
mv-6f06cd42b8e56aaae2be853a31d73d0115a39c2a.tar.xz
mv-6f06cd42b8e56aaae2be853a31d73d0115a39c2a.zip
Add chat command for create chat room (incomplete).
New chat command: /chatroom NAME
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp12
-rw-r--r--src/actions/commands.h1
2 files changed, 13 insertions, 0 deletions
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
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 6417dd32e..f5fa4344b 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -82,6 +82,7 @@ namespace Actions
decHandler(homunTalk);
decHandler(homunEmote);
decHandler(commandHomunEmote);
+ decHandler(createPublicChatRoom);
} // namespace Actions
#undef decHandler