From 02418bd3628c8cb4e6903118bbcff741fd1fad3d Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sat, 13 Jul 2024 14:41:43 +0200 Subject: [PATCH] reclassify channel owner's chat --- app/Models/ChatLog.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Models/ChatLog.php b/app/Models/ChatLog.php index f1777b8..d5e8e28 100644 --- a/app/Models/ChatLog.php +++ b/app/Models/ChatLog.php @@ -76,6 +76,10 @@ class ChatLog extends Model { $this->type = 'self'; return; } + if (!empty($this->params) && $this->params[0] == '#'.$this->nick) { + $this->type = 'owner'; + return; + } if ($this->command == 'PRIVMSG' || $this->command == 'WHISPER') { if (static::isKnownBot($this->nick)) { -- 2.39.2