Fix multi-byte after @mention

This commit is contained in:
Daniel Winzen
2016-10-05 18:30:44 +02:00
parent 0e969a1894
commit 9a2e5868e8
3 changed files with 6 additions and 6 deletions

View File

@ -2997,8 +2997,8 @@ function apply_filter(){
if(strlen($nick)===1){
break;
}
$rest=substr($nick, -1).$rest;
$nick=substr($nick, 0, -1);
$rest=mb_substr($nick, -1).$rest;
$nick=mb_substr($nick, 0, -1);
}
return "$matched[0]";
}, $U['message']);