summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp15
-rw-r--r--src/actions/commands.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index c8d4f2b21..09895dc03 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -229,6 +229,21 @@ impHandler(chatEnemy)
return true;
}
+impHandler(chatNuke)
+{
+ if (!actorManager)
+ return false;
+
+ const std::string nick = getNick(event);
+ Being *const being = actorManager->findBeingByName(
+ nick, ActorType::Player);
+ if (!being)
+ return true;
+
+ actorManager->addBlock(static_cast<uint32_t>(being->getId()));
+ actorManager->destroy(being);
+}
+
impHandler0(present)
{
if (chatWindow)
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 085b89663..160737572 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -36,6 +36,7 @@ namespace Actions
decHandler(chatBlackList);
decHandler(chatEnemy);
decHandler(chatErase);
+ decHandler(chatNuke);
decHandler(present);
decHandler(printAll);
decHandler(move);