From 1cc087643ead1d6b597e162259a9909ac3a90a6e Mon Sep 17 00:00:00 2001 From: Denny Dai Date: Sat, 30 May 2015 17:41:48 +0800 Subject: [PATCH] fix bug: cannot chat with user fix bug: cannot chat with user --- BOT.php | 2 +- init.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BOT.php b/BOT.php index 625276c..0430e9c 100644 --- a/BOT.php +++ b/BOT.php @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/init.php b/init.php index 8dca5f2..b3d7619 100644 --- a/init.php +++ b/init.php @@ -4,9 +4,9 @@ require_once('config.inc.php'); require_once('functions.php'); $plugins = []; -if($_GET['from'] != BOT_NAME){ +if($_GET['from'] != escapePeer(BOT_NAME)){ //is group? - if ($_GET['to'] == BOT_NAME) { + if ($_GET['to'] == escapePeer(BOT_NAME)) { $isgroup = false; }else{ $isgroup = true;