diff options
Diffstat (limited to 'web/index.php')
| -rw-r--r-- | web/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/index.php b/web/index.php index 392913e..cc4be55 100644 --- a/web/index.php +++ b/web/index.php @@ -118,9 +118,12 @@ if (isset($room)) { <td class="datetime"><a href="/?r=<?= urlencode($room['name']) ?>&d=<?= urlencode($date) ?>#msgid=<?= $m['id'] ?>"><?= date('H:i', strtotime($m['sent_at'])) ?></a> </td> - <td class="nick"><?= $m['nick'] ?></td> + <td class="nick"> + <?= (!isset($prev_msg_nick) || $prev_msg_nick != $m['nick']) ? $m['nick'] : '' ?> + </td> <td class="content"><?= $m['params'] ?></td> </tr> + <?php $prev_msg_nick = $m['nick']; ?> <?php endforeach; ?> </table> <?php endif; ?> |
