summaryrefslogtreecommitdiff
path: root/npc/commands/ipcheck.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/ipcheck.txt')
-rw-r--r--npc/commands/ipcheck.txt8
1 files changed, 6 insertions, 2 deletions
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 <admin@tmw2.org>
//
+// @ipcheck <player_name>
// #ipcheck <player_name>
//
// 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: