phpircbot2/commands/md5.global.php
Jan Philipp Timme 6b39d44754 Initial import.
2010-11-21 22:13:54 +00:00

6 lines
313 B
PHP

<?php
#BOT_INCLUDE "md5" "global" "0"
$value = trim($this -> protocol -> getArgs(1, $recv));
if($value != "") $this -> call("privmsg", $recv["origin"], $recv["nick"].", your md5-hash: ".md5($value));
else $this -> call("privmsg", $recv["origin"], $recv["nick"].": Syntax: ".$this -> prefix."md5 <value>");
?>