Skip to content

Commit 7e2ad10

Browse files
committed
过滤掉自动回复的@XX
1 parent a379672 commit 7e2ad10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WebQQ/demo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ function while_poll($runing = true){
211211
$webqq->write_file($from_uin_file . $from_uin, 'online');
212212
}
213213
}else{
214+
$msg = preg_replace('/@(.*?)\s/isu','', $msg);
214215
if($msg_url = match_url($msg)){
215216
$reply = url_result($msg_url);
216217
}else{

0 commit comments

Comments
 (0)