phpircbot2/commands/user.password.query.php

16 lines
470 B
PHP
Raw Permalink Normal View History

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