]> git.localhorst.tv Git - alttp.git/commitdiff
reclassify channel owner's chat
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 13 Jul 2024 12:41:43 +0000 (14:41 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 13 Jul 2024 12:41:43 +0000 (14:41 +0200)
app/Models/ChatLog.php

index f1777b804a1cb26c80cdfe8ada9ddbc07a3d7d30..d5e8e2874d69d2079b3a63c3ff4ff34487e4a221 100644 (file)
@@ -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)) {