mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
replace deprecated functions
This commit is contained in:
@@ -99,7 +99,7 @@ class MessageUtil
|
||||
*/
|
||||
public static function splitCommand($msg): array
|
||||
{
|
||||
$word = explodeMsg(str_replace("\r", '', $msg));
|
||||
$word = explode_msg(str_replace("\r", '', $msg));
|
||||
if (empty($word)) {
|
||||
$word = [''];
|
||||
}
|
||||
@@ -160,7 +160,7 @@ class MessageUtil
|
||||
break;
|
||||
}
|
||||
if ($v->pattern != '') {
|
||||
$match = matchArgs($v->pattern, $msg);
|
||||
$match = match_args($v->pattern, $msg);
|
||||
if ($match !== false) {
|
||||
$matched->match = $match;
|
||||
$matched->object = $v;
|
||||
|
||||
Reference in New Issue
Block a user