Initial import.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?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");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user