16 lines
470 B
PHP
16 lines
470 B
PHP
<?php
|
|
#BOT_INCLUDE "password" "query" "0"
|
|
|
|
/*
|
|
* This file contains code for the query-based user-command "password"
|
|
*/
|
|
|
|
include("#BOT_PATHuser.query.inc.php");
|
|
if($this -> userdb -> isActive($nick)){
|
|
$this -> userdb -> updatePW($nick, $pw);
|
|
$this -> call("notice", $nick, "Your new pw is now: ".$pw);
|
|
}
|
|
else{
|
|
$this -> call("notice", $nick, "You are not identified. Type /msg ".$this -> nick." identify <password> in order to identify yourself");
|
|
}
|
|
?>
|