phpircbot2/commands/user.ident.query.php

16 lines
422 B
PHP
Raw Normal View History

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