translate && del Redundant codes && some new var

This commit is contained in:
Denny Dai
2015-05-30 01:30:08 +08:00
parent 75c23b86e9
commit 2347defd47
10 changed files with 18 additions and 100 deletions
+3 -3
View File
@@ -4,9 +4,9 @@ require_once('config.inc.php');
require_once('functions.php');
$plugins = [];
if($_GET['from'] != "Dx._Dennx"){
if($_GET['from'] != BOT_NAME){
//is group?
if ($_GET['to'] == 'Dx._Dennx') {
if ($_GET['to'] == BOT_NAME) {
$isgroup = false;
}else{
$isgroup = true;
@@ -17,7 +17,7 @@ if($_GET['from'] != "Dx._Dennx"){
$from = $_GET['to'];
}else{
$from = $_GET['from'];
$BOT->exec("msg Denny_Dai ".json_encode($_GET)); //私聊监测
$BOT->exec("msg ".escapePeer(OWNER_NAME)." ".json_encode($_GET));
}
//load plugins