summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-21 12:34:43 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-21 12:34:43 -0300
commit1e58ae86ede467ac84248720a89ed5005404a3ea (patch)
treeb4ba72297a073df35e8853680db8909c82fa5072 /npc/commands
parentbf6ddd274a45b5fc5ae4074cb9fba16c6cef85fd (diff)
downloadserverdata-1e58ae86ede467ac84248720a89ed5005404a3ea.tar.gz
serverdata-1e58ae86ede467ac84248720a89ed5005404a3ea.tar.bz2
serverdata-1e58ae86ede467ac84248720a89ed5005404a3ea.tar.xz
serverdata-1e58ae86ede467ac84248720a89ed5005404a3ea.zip
Implode stuff
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/kami.txt4
-rw-r--r--npc/commands/wgm.txt4
2 files changed, 2 insertions, 6 deletions
diff --git a/npc/commands/kami.txt b/npc/commands/kami.txt
index c07190796..4cb8964a9 100644
--- a/npc/commands/kami.txt
+++ b/npc/commands/kami.txt
@@ -16,9 +16,7 @@
OnCall:
.@request$ = strcharinfo(0)+": ";
- for (.@i = 0; .@i < .@atcmd_numparameters; ++.@i) {
- .@request$ += (.@i > 0 ? " " : "") + .@atcmd_parameters$[.@i];
- }
+ .@request$ += implode(.@atcmd_parameters$, " ");
channelmes("#world", .@request$);
announce l(.@request$), bc_all|bc_npc;
end;
diff --git a/npc/commands/wgm.txt b/npc/commands/wgm.txt
index d24841546..cbaa95b86 100644
--- a/npc/commands/wgm.txt
+++ b/npc/commands/wgm.txt
@@ -14,9 +14,7 @@
OnCall:
.@request$ = strcharinfo(0)+": ";
- for (.@i = 0; .@i < .@atcmd_numparameters; ++.@i) {
- .@request$ += (.@i > 0 ? " " : "") + .@atcmd_parameters$[.@i];
- }
+ .@request$ += implode(.@atcmd_parameters$, " ");
atcommand("@request "+.@request$);
end;