summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2025-04-17 17:31:07 -0300
committerJesusaves <cpntb1@ymail.com>2025-04-17 17:31:07 -0300
commit561a6387af8b921d2f54063529621aecc8b9446e (patch)
tree80f97af282296f78c9e1b614c8f3aa7d85c161d9
parent46818cb6348b4970d26b2f3c6b0ca12dce4c0900 (diff)
downloadserverdata-561a6387af8b921d2f54063529621aecc8b9446e.tar.gz
serverdata-561a6387af8b921d2f54063529621aecc8b9446e.tar.bz2
serverdata-561a6387af8b921d2f54063529621aecc8b9446e.tar.xz
serverdata-561a6387af8b921d2f54063529621aecc8b9446e.zip
kamibroadcast(): Do not send messages to #world in Hardcore servers
-rw-r--r--npc/commands/kami.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt
index 0dc808bb3..e9eaaa025 100644
--- a/npc/commands/kami.txt
+++ b/npc/commands/kami.txt
@@ -131,11 +131,14 @@ function script kamibroadcast {
.@msg$=getarg(0);
.@snd$=getarg(1, "");
- // Send to #world
- if (.@snd$ == "")
- channelmes("#world", .@msg$);
- else
- channelmes("#world", "[ "+.@snd$+" ] : "+.@msg$);
+ // NOTE: Do not send to #world in Hardcore servers
+ if (!$HARDCORE) {
+ // Send to #world
+ if (.@snd$ == "")
+ channelmes("#world", .@msg$);
+ else
+ channelmes("#world", "[ "+.@snd$+" ] : "+.@msg$);
+ }
// Make an announce
if (.@snd$ == "")