phpircbot2/commands/md5.global.php

6 lines
313 B
PHP
Raw Normal View History

2010-11-21 23:13:54 +01:00
<?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>");
?>