Initial import.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
#BOT_INCLUDE "dns" "prefix" "1"
|
||||
$data = $this -> protocol -> getArgs(1, $recv);
|
||||
if(trim($data) == "") $data = $recv["iphost"];
|
||||
$host = gethostbyaddr($data);
|
||||
if($host == $data || $host == "") $this -> call("privmsg", $recv["origin"], $recv["nick"].", your ip could not be resolved.");
|
||||
else $this -> call("privmsg", $recv["origin"], $recv["nick"].", your host is: ".$host);
|
||||
?>
|
||||
Reference in New Issue
Block a user