set $text

This commit is contained in:
Denny Dai
2015-06-26 14:14:14 +08:00
parent d0391f4a7e
commit 1ab6510772
6 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
PluginList("echo", "Echo what you typed.");
if (preg_match("/^".TAG."echo (.*)$/", $_GET['text'], $matches)) {
if (preg_match("/^".TAG."echo (.*)$/", $text, $matches)) {
$BOT->msg($from, $matches[1]);
}