16 lines
422 B
PHP
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.");
|
||
|
}
|
||
|
?>
|