mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
fix control give.
This commit is contained in:
@@ -130,8 +130,8 @@ func (s *session) sendControlHost(request message.ControlHost) error {
|
||||
} else {
|
||||
return s.toClient(&oldMessage.ControlTarget{
|
||||
Event: oldEvent.CONTROL_GIVE,
|
||||
ID: request.HostID,
|
||||
Target: request.ID,
|
||||
ID: request.ID,
|
||||
Target: request.HostID,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,8 +83,8 @@ func (session *SessionCtx) SetAsHost() {
|
||||
session.manager.setHost(session, session)
|
||||
}
|
||||
|
||||
func (session *SessionCtx) SetAsHostBy(host types.Session) {
|
||||
session.manager.setHost(session, host)
|
||||
func (session *SessionCtx) SetAsHostBy(bySession types.Session) {
|
||||
session.manager.setHost(bySession, session)
|
||||
}
|
||||
|
||||
func (session *SessionCtx) ClearHost() {
|
||||
|
||||
Reference in New Issue
Block a user