diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-02 03:02:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-02 03:02:25 +0300 |
commit | 17631dacf2cb8ebc3acc1dae9df0729a80a150d9 (patch) | |
tree | f05dce9d2cedcf3690f789e7697658608bd83436 /src/commandhandler.cpp | |
parent | 30a3e0b6d4b773e2d803730d9815c4d0eab3ff81 (diff) | |
download | manaverse-17631dacf2cb8ebc3acc1dae9df0729a80a150d9.tar.gz manaverse-17631dacf2cb8ebc3acc1dae9df0729a80a150d9.tar.bz2 manaverse-17631dacf2cb8ebc3acc1dae9df0729a80a150d9.tar.xz manaverse-17631dacf2cb8ebc3acc1dae9df0729a80a150d9.zip |
Add enemy relation.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 914304f22..d04fda150 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -115,6 +115,8 @@ void CommandHandler::handleCommand(const std::string &command, ChatTab *tab) handleNeutral(args, tab); else if (type == "blacklist") handleBlackList(args, tab); + else if (type == "enemy") + handleEnemy(args, tab); else if (type == "erase") handleErase(args, tab); else if (type == "join") @@ -587,6 +589,11 @@ void CommandHandler::handleBlackList(const std::string &args, ChatTab *tab) changeRelation(args, PlayerRelation::BLACKLISTED, _("blacklisted"), tab); } +void CommandHandler::handleEnemy(const std::string &args, ChatTab *tab) +{ + changeRelation(args, PlayerRelation::ENEMY2, _("enemy"), tab); +} + void CommandHandler::handleErase(const std::string &args, ChatTab *tab) { if (args.empty()) |