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;