mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-31 23:40:50 +02:00
update screen WS.
This commit is contained in:
parent
83be51ea0f
commit
4bbf3bb039
6 changed files with 13 additions and 86 deletions
|
@ -12,13 +12,6 @@ func (h *MessageHandlerCtx) SessionCreated(session types.Session) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if session.Admin() {
|
||||
// send screen configurations if admin
|
||||
if err := h.screenConfigurations(session); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -42,11 +35,6 @@ func (h *MessageHandlerCtx) SessionConnected(session types.Session) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// send current screen size
|
||||
if err := h.screenSize(session); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// tell session there is a host
|
||||
host := h.sessions.GetHost()
|
||||
if host != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue