usage: msg($peer, $text)

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