X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FChatLog.php;h=2d43b2f08b008e3684e0b9c0ed6fb0532f8194af;hb=bda7ebfd0ba79a30d4e02b321ed4abdb89840f6e;hp=063e8036485cdf5cc31ef793215db38f63a90b4c;hpb=7d1ef8619d7513184340f73e99efa20481b86d75;p=alttp.git diff --git a/app/Models/ChatLog.php b/app/Models/ChatLog.php index 063e803..2d43b2f 100644 --- a/app/Models/ChatLog.php +++ b/app/Models/ChatLog.php @@ -34,9 +34,7 @@ class ChatLog extends Model { $positions = explode(',', $set[1]); foreach ($positions as $position) { $coords = explode('-', $position); - for ($i = intval($coords[0]); $i <= intval($coords[1]); ++$i) { - $text[$i] = ' '; - } + $text = mb_substr($text, 0, $coords[0]).str_repeat(' ', $coords[1] - $coords[0] + 1).mb_substr($text, $coords[1] + 1); } } } @@ -79,11 +77,13 @@ class ChatLog extends Model { public static function isKnownBot($nick) { return in_array(strtolower($nick), [ + 'a_n_i_v', 'birrellthesquirrel', 'funtoon', 'nidbot2000', 'nightbot', 'pokemoncommunitygame', + 'sery_bot', 'speedgaming', 'starbase47', 'streamelements',