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

16 lines
422 B
PHP

<?php
#BOT_INCLUDE "identify" "query" "0"
/*
* This file contains code for the query-based user-command "identify"
*/
include("#BOT_PATHuser.query.inc.php");
if($this -> userdb -> checkPw($nick, $pw)){
$this -> userdb -> update($nick);
$this -> call("notice", $nick, "You are now identified.");
}
else{
$this -> call("notice", $nick, "Wrong password or you have no account with this nickname.");
}
?>