From 3624d09562343863a91f5ff244cd1c645dbaabaa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Jul 2018 16:56:06 -0300 Subject: Fix @ipcheck --- npc/commands/ipcheck.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'npc/commands/ipcheck.txt') diff --git a/npc/commands/ipcheck.txt b/npc/commands/ipcheck.txt index 756e64a4f..eab4e825a 100644 --- a/npc/commands/ipcheck.txt +++ b/npc/commands/ipcheck.txt @@ -1,6 +1,7 @@ // TMW2 script // Author: Jesusalva // +// @ipcheck // #ipcheck // // Returns user IP @@ -10,8 +11,11 @@ end; OnCall: - dispbottom str(getcharip()); - debugmes strcharinfo(0)+": IP "getcharip(); + if (.@atcmd_numparameters == 0) + .@request$ = strcharinfo(0); + else + .@request$ = implode(.@atcmd_parameters$, " "); + dispbottom strcharinfo(0)+": IP "getcharip(.@request$); end; OnInit: -- cgit v1.2.3-60-g2f50