From: Daniel Karbach Date: Sat, 13 Jul 2024 12:41:43 +0000 (+0200) Subject: reclassify channel owner's chat X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=02418bd3628c8cb4e6903118bbcff741fd1fad3d;p=alttp.git reclassify channel owner's chat --- 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)) {