diff options
author | Christoph Brill <egore911@gmail.com> | 2017-02-07 13:33:57 +0100 |
---|---|---|
committer | Christoph Brill <egore911@gmail.com> | 2017-02-07 13:33:57 +0100 |
commit | b01610db7a39cd2ddc0ff9f9cc2763ec50d99125 (patch) | |
tree | d46f6cad2b3b7921e7490f9f1d38cce8fab06782 | |
parent | 345eb510d6b72328b057c030363624e4c3ff74c8 (diff) |
Drop channel name from each line
-rw-r--r-- | details.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/details.php b/details.php index 786c2d6..6dc0d36 100644 --- a/details.php +++ b/details.php @@ -23,11 +23,12 @@ foreach ($lines as $line_num => $line) { if ($show_html == 'true') { $line = preg_replace($pattern, "\\1<a target=\"_blank\" href=\"\\2\\3\">\\2\\3</a>\\4", $line); } - $user_link = '<a style="color: inherit;" href="javascript:addUser(\''.$user_clean.'\');"'; + $user_link = '<a class="inherit" href="javascript:addUser(\''.$user_clean.'\');"'; if (isset($realname[$user_clean])) { $user_link .= ' title="'.$realname[$user_clean].'"'; } - $user_link .= '>'.str_replace('<', '<', str_replace('>', '>', $user)).'</a>'; + $user_link .= '>'.$user_clean.'</a>:'; + $line = preg_replace('/([0-9:]{5}) #'.$channel.':/', '\\1', $line); if (!in_array($time, $timehashes)) { $time_link = '<a class="inherit" name="t-'.str_replace(':', '', $time).'">'.$time.'</a>'; $line = str_replace($time, $time_link, $line); |