8 lines
364 B
PHP
8 lines
364 B
PHP
<?php
|
|
#BOT_INCLUDE "ip" "prefix" "1"
|
|
$data = $this -> protocol -> getArgs(1, $recv);
|
|
if(trim($data) == "") $data = $recv["iphost"];
|
|
$ip = gethostbyname($data);
|
|
if($ip == $data) $this -> call("privmsg", $recv["origin"], $recv["nick"].", your dns could not be resolved.");
|
|
else $this -> call("privmsg", $recv["origin"], $recv["nick"].", your ip is: ".$ip);
|
|
?>
|