mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-25 06:57:01 +02:00
sessions: switch to settings struct.
This commit is contained in:
parent
d004ddd68f
commit
81867d811b
9 changed files with 113 additions and 80 deletions
|
@ -40,7 +40,7 @@ func (h *MessageHandlerCtx) controlRequest(session types.Session) error {
|
|||
return ErrIsAlreadyTheHost
|
||||
}
|
||||
|
||||
if !h.sessions.ImplicitHosting() {
|
||||
if !h.sessions.Settings().ImplicitHosting {
|
||||
// tell session if there is a host
|
||||
if host := h.sessions.GetHost(); host != nil {
|
||||
session.Send(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue