replace deprecated functions

This commit is contained in:
sunxyw
2022-03-21 20:49:09 +08:00
parent 680e6a8c5f
commit bc7d5871e4
3 changed files with 11 additions and 11 deletions

View File

@@ -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;