mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-01 18:33:04 +02:00
fixes #14
This commit is contained in:
parent
a0866a4ab9
commit
e3a73aa264
26 changed files with 1154 additions and 934 deletions
|
@ -1,13 +1,13 @@
|
|||
package websocket
|
||||
|
||||
import (
|
||||
"n.eko.moe/neko/internal/event"
|
||||
"n.eko.moe/neko/internal/message"
|
||||
"n.eko.moe/neko/internal/session"
|
||||
"n.eko.moe/neko/internal/types"
|
||||
"n.eko.moe/neko/internal/types/event"
|
||||
"n.eko.moe/neko/internal/types/message"
|
||||
)
|
||||
|
||||
func (h *MessageHandler) chat(id string, session *session.Session, payload *message.ChatRecieve) error {
|
||||
if session.Muted {
|
||||
func (h *MessageHandler) chat(id string, session types.Session, payload *message.ChatRecieve) error {
|
||||
if session.Muted() {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -23,8 +23,8 @@ func (h *MessageHandler) chat(id string, session *session.Session, payload *mess
|
|||
return nil
|
||||
}
|
||||
|
||||
func (h *MessageHandler) chatEmote(id string, session *session.Session, payload *message.EmoteRecieve) error {
|
||||
if session.Muted {
|
||||
func (h *MessageHandler) chatEmote(id string, session types.Session, payload *message.EmoteRecieve) error {
|
||||
if session.Muted() {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue