diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-20 12:33:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-21 21:09:08 +0300 |
commit | 54ee7d240a8ab3a328d0f3f06f3b9627d4727c90 (patch) | |
tree | a50136462b44739cecf17c438ed65640d031dbcd /src/net/ea/adminhandler.cpp | |
parent | c483cf600e74e7d38a7c0cc7d80435e97040c76c (diff) | |
download | mv-54ee7d240a8ab3a328d0f3f06f3b9627d4727c90.tar.gz mv-54ee7d240a8ab3a328d0f3f06f3b9627d4727c90.tar.bz2 mv-54ee7d240a8ab3a328d0f3f06f3b9627d4727c90.tar.xz mv-54ee7d240a8ab3a328d0f3f06f3b9627d4727c90.zip |
Send channel name to net code layer.
Diffstat (limited to 'src/net/ea/adminhandler.cpp')
-rw-r--r-- | src/net/ea/adminhandler.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp index 542937008..f6450a225 100644 --- a/src/net/ea/adminhandler.cpp +++ b/src/net/ea/adminhandler.cpp @@ -31,9 +31,11 @@ namespace Ea { +const std::string GENERAL_CHANNEL = "\000\000\000"; + void AdminHandler::kickName(const std::string &name) { - Net::getChatHandler()->talk("@kick " + name); + Net::getChatHandler()->talk("@kick " + name, GENERAL_CHANNEL); } void AdminHandler::ban(int playerId A_UNUSED) @@ -43,7 +45,7 @@ void AdminHandler::ban(int playerId A_UNUSED) void AdminHandler::banName(const std::string &name) { - Net::getChatHandler()->talk("@ban " + name); + Net::getChatHandler()->talk("@ban " + name, GENERAL_CHANNEL); } void AdminHandler::unban(int playerId A_UNUSED) @@ -53,7 +55,7 @@ void AdminHandler::unban(int playerId A_UNUSED) void AdminHandler::unbanName(const std::string &name) { - Net::getChatHandler()->talk("@unban " + name); + Net::getChatHandler()->talk("@unban " + name, GENERAL_CHANNEL); } void AdminHandler::mute(int playerId A_UNUSED, int type A_UNUSED, @@ -65,7 +67,7 @@ void AdminHandler::mute(int playerId A_UNUSED, int type A_UNUSED, void AdminHandler::warp(std::string map, int x, int y) { Net::getChatHandler()->talk(strprintf( - "@warp %s %d %d", map.c_str(), x, y)); + "@warp %s %d %d", map.c_str(), x, y), GENERAL_CHANNEL); } } // namespace Ea |